> I can use "to_char" and get results as OCT-08, SEP-08,
etc. But I need to
> sort (ORDER BY) these. Since they are strings, query
results are displayed
> alphabetically. With APR-08 and AUG-08 always shown
first, since these months
> begin with letter "A".
There are an awful lot more options for formtting dates
available to you
than that:
http://download.oracle.com/docs/cd/B10501_01/server.920/a96540/sql_elements4a.htm#48515
(That's for 9i...)
If you're grouping / sorting by month, wouldn't you want your
YEAR before
your month, anyhow (irrespective of which month format you're
using),
otherwise you'd be getting all your Januaries - eg, Jan 2005,
Jan 2006, Jan
2007, Jan 2008, etc - listed before your Februaries, etc. I'd
be using
YYYY for year and MM for month; that'll give you a six-char
string which'd
sort nicely.
--
Adam