For ID =101 Data is coming from different TABLE
All the TABLES have a ID column
Name Income
Table_A a $6,868
Table_B b $4,443
Table_C c $6,726
Table_D d $10,163
Table_E e $4,853
Table_F f $3,368
To get result like above Should I use UNION or Inner JOIN ?
TABLE_A
ID NAME INCOME
101 a $6,868
TABLE_B
ID NAME INCOME
101 b $4,443
like that other table
so should I use Inner Join or UNION here ?
If row
Xis computed by looking only at tableX, thenUNIONis the correct tool to use.