Dayofmonth Function; Examples Of Dayofmonth - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

DAYOFMONTH Function

The DAYOFMONTH function converts a DATE or TIMESTAMP expression into an INTEGER
value in the range 1 through 31 that represents the corresponding day of the month. The result
returned by the DAYOFMONTH function is equal to the result returned by the DAY function.
DAYOFMONTH is a Neoview SQL extension.
DAYOFMONTH (datetime-expression)
datetime-expression
is an expression that evaluates to a datetime value of type DATE or TIMESTAMP. See
"Datetime Value Expressions" (page

Examples of DAYOFMONTH

Return an integer that represents the day of the month from the START_DATE column of the
PROJECT table:
SELECT start_date, ship_timestamp, DAYOFMONTH(start_date)
FROM persnl.project
WHERE projcode = 1000;
Start/Date
----------
1996-04-10
Time/Shipped
--------------------------
1996-04-21 08:15:00.000000
210).
(EXPR)
------
10
DAYOFMONTH Function
327

Advertisement

Table of Contents
loading

Table of Contents