I have a sql table in a MySQL with the following records:
+------+----------+ | user | dob | +------+----------+ | john | 1/10/96 | | jane | 3/4/97 |
WIth the help of Delete with Join in MySQL
I made
DELETE FROM table_name a INNER JOIN (SELECT count(name) as dupesPostMillenia, name FROM table_name WHERE dob>'1/1/00' GROUP BY name ) b on a.name=b.name WHERE a.dob < '1/1/00' and b.dupesPostMillenia=0
I think this might help.