You can also subtract one day from the date field where Sunday becomes Saturday and Monday becomes Sunday hence it would sort the days from Monday to Sunday.
Code:select * from XYZ order by to_char(buydate-1,'D') ;
|
Results 1 to 7 of 7
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |