I have a sql table in a MySQL with the following records:
+------+----------+
| user | dob |
+------+----------+
| john | 1/10/96 |
| jane | 3/4/97 |
| jill | 1/8/96 |
| jack | 2/9/00 |
| jane | 12/14/07 |
| john | 1/11/98 |
+------+----------+
Here's the command I want to execute:
delete all users with dob < 1/1/00 but keep a user if there exists another user with the same name whose dob >= 1/1/00.
In this example, the johns and jill would be deleted and the janes and jack would stay.
How do I translate the above command into sql?