I need a quick way to sort by two seperate fields in a database.
field1 = month
field2 = day
I would like to sort by month first and print out the month (only once) and then sort the days in that month. One I get to another month I need to repeat the process
Here is the current SQL I have:
mySQL ="select * from practice order by month Ascending"
is there anyway to add the second sort (sort by day ascending) into the SQL statement above?
field1 = month
field2 = day
I would like to sort by month first and print out the month (only once) and then sort the days in that month. One I get to another month I need to repeat the process
Here is the current SQL I have:
mySQL ="select * from practice order by month Ascending"
is there anyway to add the second sort (sort by day ascending) into the SQL statement above?