I have two tables. T1 has t1field1 and t1field2, and T2 has t2field1 and t2field2.
I want to remove all records from T2, if t2field1 value does not exist in t1field1
+----------+----------+
| t1field1 | t1field2 |
+----------+----------+
| 1 | x |
| 5 | y |
| 6 | z |
+----------+----------+
+----------+----------+
| t2field1 | t2field2 |
+----------+----------+
| 3 | x |
| 4 | y |
| 5 | z |
+----------+----------+
Try this:
OR