Dayname Function; Example Of Dayname - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

DAYNAME Function

The DAYNAME function converts a DATE or TIMESTAMP expression into a character literal
that is the name of the day of the week (Sunday, Monday, and so on).
DAYNAME is a Neoview SQL extension.
DAYNAME (datetime-expression)
datetime-expression
is an expression that evaluates to a datetime value of type DATE or TIMESTAMP. See
"Datetime Value Expressions" (page

Example of DAYNAME

Return the name of the day of the week from the START_DATE column in the PROJECT table:
SELECT start_date, ship_timestamp, DAYNAME(start_date)
FROM persnl.project
WHERE projcode = 1000;
Start/Date
----------
1996-04-10
326
SQL Functions and Expressions
Time/Shipped
--------------------------
1996-04-21 08:15:00.000000
210).
(EXPR)
---------
Wednesday

Advertisement

Table of Contents
loading

Table of Contents