Have 2 tables TABLE1 and TABLE2
Have to fetch record from both table in below given 2 criteria with INNER JOIN.
[1] Fetch record from when TABLE1.id = TABLE2.id
[2] Fetch record from when TABLE1.id NOT IN TABLE2.id field
CAN any one tell query for both criteria.
Edit:
table1
id
1
2
3
table2
id
1
2
result for criteria 1
1, 2
result for criteria 2
3