I have three tables.
A
ID NAME
--- ----
1 abc
2 asd
3 qwe
B
ID INCOME
--- ------
1 2
2 3
1 4
C
NAME TOTAL
---- ----
abc 8
asd 20
I want to join this three tables with a SQL query to produce an output like
ID INCOME TOTAL
---------------
1 6 8
2 3 20
Could anyone help me?