Appreciate some suggestions on creating a select query.
-Retrieving records on a four digit id number.
-Parent record id numbers end in '00' (i.e. 3100), child records end with '01' to '99' (i.e. 3102).
-Need to exclude parent record if child record(s) exist.
-Include parent records where no child record(s) exist.
In other words:
If record id's are:
3100
3101
3102
3200
3300
Records 3101, 3102, 3200, 3300 are returned, but 3100 is not.
Any ideas?
Using MySQL 5
Thanks,
Douglas