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

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

MONTH Function

The MONTH function converts a DATE or TIMESTAMP expression into an INTEGER value in
the range 1 through 12 that represents the corresponding month of the year.
MONTH is a Neoview SQL extension.
MONTH (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 MONTH

Return an integer that represents the month of the year from the START_DATE column in the
PROJECT table:
SELECT start_date, ship_timestamp, MONTH(start_date)
FROM persnl.project
WHERE projcode = 1000;
Start/Date
----------
2008-04-10
Time/Shipped
--------------------------
2008-04-21 08:15:00.000000
257).
(EXPR)
------
4
MONTH Function
423

Advertisement

Table of Contents
loading

Table of Contents