Oracle® OLAP DML Reference 11g Release 2 (11.2) Part Number E17122-07 |
|
|
PDF · Mobi · ePub |
The MMOF function returns an INTEGER
in the range of 1 to 12, giving the month in which a specified date falls. The result returned by MMOF has the same dimensions as the specified DATE expression.
INTEGER
MMOF(date-expression)
An expression that has the DATE data type, or a text expression that specifies a date. The values of the text expression are converted automatically to DATE values, using the current setting of the DATEORDER option to resolve any ambiguity.
OLADM1772Example 8-26 Finding the Current Month
The following statement determines the month in which today's date falls.
SHOW MMOF(TODAY)
When today's date is January 15, 1996, this statement produces the following output.
1