pzmohanty Beginner

Joined: 20 May 2004 Posts: 97 Topics: 43 Location: hyderabad, India
|
Posted: Sun Sep 05, 2004 3:14 am Post subject: db2 DAYNAME function |
|
|
hi all,
we have a DAYNAME function which returns a mixed case character string containing the name of the day (e.g., Friday) for the day portion of the argument.
I had tried to use the DAYNAME function but got error.
following is the query :
1) SELECT DAYNAME(CURRENT DATE) AS WEEK_NAME FROM SYSIBM.SYSDUMMY1;
2) SELECT DSN8.DAYNAME(CURRENT DATE) AS WEEK_NAME FROM SYSIBM.SYSDUMMY1;
my other question is is their any SQL query to retrieve the DB2 version being used
Thanx in advn
P.R.Mohanty |
|