Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: ordering by weekday
Just an idea ...
Create another table like
day sortorder
monday 1
tuesday 2
wednesday 3
...
join it to your table by the weekday
and use the sortorder column to sort your result
HTH
"Marc E" <jonnycattt_at_cablespeed.com> wrote in message
news:u5jspjfqp2su43_at_corp.supernews.com...
> I think I figured it out, but I'm not convinced it will work all the time.
> Will it?
>
> select ...
> from...
> order by to_char(hiredate-1, 'd');
>
>
Received on Fri Feb 01 2002 - 23:09:47 CST