If you can change the schema, add a column to store the "deleted" attribute, so you can SELECT ... WHERE NOT deleted. Otherwise SELECT ... WHERE NOT EXISTS (SELECT 1 FROM table2 where table2.field == table1.field); Or SELECT ... WHERE table1.field NOT IN (SELECT DISTINCT field FROM table2); Edit: added DISTINCT to above SELECT