How would I identify a transaction taking in consideration the following
I have a user table holding user datas
++ id | username | btc_recive_address++
----------------------------------------
++ 1 | myuser | 123kahpoiq31328 ++
order table
++ order_id | user_id | amount
---------------------------------
++ h6765-a1s | 1 | 0.1 BTC
---------------------------------
++ kzg765-a1 | 1 | 0.1 BTC
and collector table which retrieves data from bitcoin API( here I identify sender with btc_recive_address)
++ block_chain | user | amount | timestamp
--------------------------------------------------------------------------------
++ 2d37e5351196... | 1 | 0.1 | 2014-04-09 16:21:34
--------------------------------------------------------------------------------
++ 123kjhg7231k.. | 1 | 0.1 | 2014-04-08 19:33:56
--------------------------------------------------------------------------------
and I try to assign transaction to order_id like generating a joined view from order and collector table but I have problems when the amount and user is the same