There are two tables table1 and table2 i want to join these tables and expect to retrieve rows which are not equal to table1 as there are rows which are in the both tables.
Table1
ID NAME Dept
1 B Finance
2 R HR
3 B CDU
Table2
ID PASSPORT
1 Yes
2 No
it is not working
SELECT table1.ID, table1.NAME, table1.Dept FROM TABLE1 INNER JOIN TABLE2 ON
TABLE1.ID != TABLE2.ID
Expected Result
ID NAME DEPT
3 B CDU
