Selecting a date part and ordering by date [message #23464] |
Wed, 11 December 2002 09:11 |
Chris
Messages: 128 Registered: November 1998
|
Senior Member |
|
|
Hello everyone
I have hopefully a simple question. Right now I have a select which reads:
Select TO_CHAR(start_time,'Month') as available_months from someTable GROUP BY TO_CHAR(start_time,'Month')
This returns the correct data, which is a list of dates represented int he start_time column of someTable. The exact returned recordset is:
August
July
November
October
September
Problem is, they are sorted alphabetically rather than by date. How can i rework this select statement to return the months in correct date order? as in:
July
August
September
October
November
Thanks for your help
|
|
|
|
|
|