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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Powerhouse QUIZ

Status
Not open for further replies.

Shedboy

IS-IT--Management
Apr 22, 2002
7
GB
Does anyone out there know if there is a QUIZ function for getting the name of the day from the date?

i.e. I have the date in normal format, 02/08/03, I need it to return SATURDAY.

There is a SQL function (TO_CHAR(T1."DATE" ,'DAY') and a Cognos Impromptu function (dayname(date)) but I can't find anything for QUIZ.

Any help appreciated.

SB
 
What is a "QUIZ function"?

In T-SQL you can use the DATENAME function:

Code:
SELECT DATENAME(dw, getdate())

--James
 
There ISN'T any TO_CHAR in MICROSOFT SQL SERVER. You are probably using ORACLE. If so, please post in the correct forum.

-SQLBill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top