ptmuldoon
08-15-2007, 02:50 AM
I'm trying to query all fields in a table, and then have the table Group by a 'state' field, and then have each grouping in descending order by its 'time' field.
But I also want to list the Groups in a specific order, although the 'state' field is not in a alpha or numeric sequence, but rather something like waiting, initial, playing, finished.
Can this be done? I'm trying to learn about how to use Group by and Order by, but not sure if thats the best approach.
But I also want to list the Groups in a specific order, although the 'state' field is not in a alpha or numeric sequence, but rather something like waiting, initial, playing, finished.
Can this be done? I'm trying to learn about how to use Group by and Order by, but not sure if thats the best approach.