मुझे लगता है कि आप यही चाहते हैं: DELETE FROM `table1` WHERE `group` in (SELECT DISTINCT `group` FROM `table2`)