Hi,
I have three table
say
tbl1
col1 col2
1 1
2 1
3 2
4 3
tbl2
col1 col2
1 aa
2 bb
tbl3
col1 col2
1 dd
2 ee
3 ff
col2 of tbl1 is a foreign key refering to col2 of both tbl2 and tbl3
I want to select all records from tbl1 when col2 of tbl1 exists either in tbl1 or tbl2 or in both, if it is not existing in both tables, I will not select that specific record
there for how can I write an inner join statement to accomplish this
Thanks