Oracle® OLAP DML Reference 10g Release 2 (10.2) Part Number B14346-03 |
|
|
PDF · Mobi · ePub |
For expressions dimensioned by a dimension of type DAY, WEEK, MONTH, QUARTER, or YEAR, the ENDDATE function returns the final date of the last time period in the dimension status for which the expression has a non-NA
value. For example, when an expression is dimensioned by a dimension of type MONTH, and when DEC98
is the last dimension value for which the expression has a non-NA
value, ENDDATE returns the date December
31,
1998
.
DATE or text (see "Automatic Conversion of DATE Values to Text Values")
ENDDATE(expression)
The expression must have exactly one dimension that has the type of DAY, WEEK, MONTH, QUARTER, or YEAR. When all the values of the expression are NA
, ENDDATE returns NA
.
Example 13-25 Finding the End Date
The following statements limit the values of the dimensions of the units
variable, then sends the last date associated with a non-NA
value to the current outfile.
LIMIT month TO ALL LIMIT product TO 'Tents' LIMIT district TO 'Chicago' SHOW ENDDATE(units)
These statements produce the following output.
31DEC96