I have a table which holds events. Each event has a name, but events are grouped based on their name.
+---------------+
| NAME |
+---------------+
| EVENT 1 CHILD |
| EVENT 1 ADULT |
+---------------+
Is a sample row. However, when I query for the events, I only want to show one of the event names.
So essentially I only want EVENT 1 ADULT to be displayed, as the child is linked to it via it's name.
I'm not sure how I would do this purly in MySQL, I know I could perform a query then strip out the events with PHP, but it seems silly to do this if I can do it with MySQL.
Any advice on how to tackle this problem?
Thanks!