Hello all,
I'm executing sql queries in oracle 10g.
I want to join 3 tables into a single new table containing all the records from the 3 individual tables. The balance should be Summed up wherever the reg_id is duplicated between the 3 tables, such that there is just one entry per reg_id with the summed balance in my new table.
Sample data ( similar tables, with different values ) . tables : temp1, temp2, temp3
reg_id | balance
--------------------------------
92603013 183.77
92611902 419.46
92766121 77.04
93527720 24.84
93581368 120.09
93684684 89.88
93527720 113.66
Appreciate if someone can help me with the syntax.