FISCAL_X_OF_Y
-
dtexpris a datetime expression with one of the following types (or any value that can be implicitly converted toDATE):DATE,TIMESTAMP,TIMESTAMP WITH TIME ZONE,TIMESTAMP WITH LOCAL TIME ZONE. -
fmtis a text expression representing a format string. In all cases, the case-sensitivity of the format specifiers follows the same behavior asTO_CHAR. For example,MONspecifies an abbreviated month in upper-case (e.g.JAN),monspecifies an abbreviated month name in lower-case (e.g.jan), andMonspecifies an abbreviated month name in title-case (e.g.Jan). -
nlsparamis a text expression representing an NLS parameter setting. The only currently supported parameter isNLS_DATE_LANGUAGE, and is specified in the same manner as forTO_CHARandTO_DATE. -
All fiscal functions take an optional
fiscal_year_startparameter defining the month and day of the start of the fiscal year.If the
fiscal_year_startparameter is specified, it's an expression of typeDATE,TIMESTAMP,TIMESTAMP WITH TIME ZONE, orTIMESTAMP WITH LOCAL TIME ZONErepresenting the first day in the fiscal year. All components other than the month and day are ignored.If the
fiscal_year_startfunction argument is not specified, the value of theCALENDAR_FISCAL_YEAR_STARTsystem/session parameter is used (which itself defaults to January 1 if not specified). TheCALENDAR_FISCAL_YEAR_STARTsystem/session parameter is a text value that will be converted to aDATEusing theNLS_DATE_FORMAT. An optional second parameter value may be specified to use an explicit format, such as:ALTER SESSION SET CALENDAR_FISCAL_YEAR_START = '01-JUN-2025', 'DD-MON-YYYY'
-
The
index_byparameter is a text value that must resolve to eitherPOSITIONorDATE(case-insensitive, defaults toDATE). It is used to distinguish between absolute and position-based numbers for the following cases:CALENDAR_DAY_OF_WEEKFISCAL_DAY_OF_WEEKRETAIL_DAY_OF_WEEKFISCAL_MONTH_OF_YEARRETAIL_MONTH_OF_YEAR
