SHARE
TWEET

Untitled

a guest Aug 13th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Table A
  2. trx_id | charge | user_id
  3.   1    |   20   |  007
  4.   2    |   10   |  008
  5.   3    |   10   |  007
  6.  
  7. Table B
  8. user_id | name
  9.   007   | Alex
  10.   008   | Adam
  11.    
  12. user_id | user_name | totalCharge
  13.   007   |   Alex    |     30
  14.   008   |   Adam    |     10
RAW Paste Data
Top