Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

day function

Status
Not open for further replies.

wsam

MIS
Apr 27, 2001
19
0
0
CA
I am trying to find days of the week and group them by those days ie hiredate field grouped by days of the week and am having no luck. Any suggestions.
 

You can make use of to_char function. As an example, try this:

SELECT TO_CHAR(sysdate,'DAY')
FROM SYS.DUAL;

This would give you the current day of the week in character.

Is this what you want?

SELECT TO_CHAR(hiredate,'DAY') dayofwk, aggregate funcs..
FROM your_table
WHERE criteria here
GROUP BY TO_CHAR(hiredate,'DAY')




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top