I have three tables (t1, t2, and t3). See below:
The first table:
ID AMOUNT 1 100 2 50
The second table