dexthageek
IS-IT--Management
I have a database that consists of various sports schedules.
The part that is NOT working is GROUP BY. I am trying to group by a column titled "sport"
My current query:
This select statement only returns 1 row from each sport when in fact there are many more records.
I would also like to display a heading everytime the group changes.
I hope I havent confused anyone, if I have let me know and I will try to explain it again.
Thanks in Advance
Mike
The part that is NOT working is GROUP BY. I am trying to group by a column titled "sport"
My current query:
Code:
SELECT * FROM `otis_sports` WHERE season = 'Fall' GROUP BY sport
This select statement only returns 1 row from each sport when in fact there are many more records.
I would also like to display a heading everytime the group changes.
I hope I havent confused anyone, if I have let me know and I will try to explain it again.
Thanks in Advance
Mike