I have two tables
Table1
SNO RECEIVER USER1 USER2
1 133 44 45
2 144 66 77
3 155 77 33
AND
TABLE 2
RECEIVER USER
133 44
133 45
144 88
144 55
155 77
Required : Delete all rows from table1 which do not have matching entry in table2
example
2 144 66 77
shoul be deleted as there are no row of 144 66 on table2
155 33
I TRIED BUT ITS NOT WORKING DELETE FROM TABLE1 A LEFT JOIN TABLE2 B ON (A.RECEIVER=B.RECEIVER AND A.USER1=B.USER) AND B.USER IS NULL;