Suppose I have the following two tables, how do I delete all the entries in table1 that is not in table2?
In this case, I want to delete id 04 and 05 from table1.
(table1)
id name
01 aaa
02 bbb
03 ccc
04 ddd
05 eee
(table2)
id
01
02
03