English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

select first_name name, hire_date , TO_CHAR(hire_date, 'day') Day
from employees
--------------------------------------------------------
my above query is working well except that I want to sort rows order by day of week starting from Monday.
/

2007-08-11 08:45:34 · 1 answers · asked by Rehan 2 in Computers & Internet Programming & Design

1 answers

The only way that I can think of is to add a new alphanumeric field to the record. For example, set Monday = A, Tuesday = B, ... Sunday = 7. Then sort on the new field.

2007-08-14 01:57:37 · answer #1 · answered by SPLATT 7 · 0 0

fedest.com, questions and answers