Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Oracle Newbie - SQL question
Hey everyone,
Just getting my feet wet with Oracle and I have run into a question I was hoping to get some help with.
I am currently studying for the Oracle SQL cert and came accross this question:
"Display the last name, hire date and the day of the week on which the
employee started. Label the column DAY. ORder the results by the day of
the week starting with Monday"
My question concerns the answer supplied in the text:
"SELECT last_name, hire_date, TO_CHAR(hire_date,'fmDay')
FROM employees
ORDER by TO_CHAR(hire_date -1,'d')"
I don't understand the ORDER BY clause.
Specifically:
Thanks in advance for any help!
Jon Received on Wed Jul 17 2002 - 11:19:58 CDT