CX Output tables

DW_SF_DAY_D

This table stores day-level information about the gregorian calendar.

Details

Module:

Key Columns

CAL_DAY_ID

Columns

NameDatatypeLengthPrecisionNot NullCommentsReferred TableReferred Column
CAL_DAY_IDNUMBER380TrueDate in YYYYMMDD format.
SOURCE_RECORD_IDNUMBER380This column is for Oracle Internal use only. Integration identifier generated by formatting the date in YYYYMMDD format.
CALENDAR_DATEDATECalendar date.
DAY_OF_WEEKNUMBER380Day of the week. Possible values are 1 through 7.
DAY_OF_MONTHNUMBER380Day of the month. Possible values are 1 through 31.
DAY_OF_YEARNUMBER380Day of the year. Possible values are 1 through 366.
DAY_AGO_DATEDATEPrevious day's date.
DAY_AGO_IDNUMBER380Previous date in YYYYMMDD format.
DAY_CODEVARCHAR216Name of the day. Possible values are SUN, MON, and so on.
DAY_LOCALE_NAMEVARCHAR232Full Name of the day. Possible values are Sunday, Monday..etc
JULIAN_DAY_NUMBERNUMBER380Date in Julian format.
CAL_WEEK_IDNUMBER380Week identifier in YYYYW format. For example, 197949.
CAL_MONTH_IDNUMBER380Month identifier in YYYYQMM format. For example, 1979412.
CAL_QUARTER_IDNUMBER380Quarter identifier in YYYYQ format. For example, 19794.
CAL_YEAR_IDNUMBER380Year identifier in YYYY format. For example, 1979.
CAL_MONTH_CODEVARCHAR232Calendar month period. For example, 1979/12.
CAL_QUARTER_CODEVARCHAR232Calendar quarter period. For example, 1979 Q4.
CAL_WEEK_CODEVARCHAR232Calendar week period. For example, 1979 Week53.
CAL_YEAR_CODEVARCHAR216Calendar Year period. For example, 1979
CAL_WEEK_START_DATEDATEStart date of the week.
CAL_WEEK_END_DATEDATEEnd date of the week.
CAL_MONTH_START_DATEDATEStart date of the month.
CAL_MONTH_END_DATEDATEEnd date of the month.
CAL_QUARTER_START_DATEDATEStart date of the quarter.
CAL_QUARTER_END_DATEDATEEnd date of the quarter.
CAL_YEAR_START_DATEDATEStart date of the year.
CAL_YEAR_END_DATEDATEEnd date of the year.
CAL_MONTH_NUMBERNUMBER380Calendar month of this day. Possible values are 1 through 12.
CAL_HALF_NUMBERNUMBER380Calendar half-year of this day. Possible values are 1 and 2.
CAL_MONTH_LOCALE_NAMEVARCHAR232Calendar month name of this day. Possible values are January, February
CAL_QUARTER_NUMBERNUMBER380Calendar quarter of this day. Possible values are 1, 2, 3, and 4.
CAL_TRIMESTER_NUMBERNUMBER380Calendar trimester of this day. Possible values are 1, 2 and 3.
CAL_WEEK_NUMBERNUMBER380Calendar week identifier. Possible values are 1 through 53.
CAL_MONTH_END_DATE_IDNUMBER380Last day of month in YYYYMMDD format.
CAL_MONTH_START_DATE_IDNUMBER380First day of month in YYYYMMDD format.
CAL_WEEK_END_DATE_IDNUMBER380Last day of week in YYYYMMDD format.
CAL_WEEK_START_DATE_IDNUMBER380First day of week in YYYYMMDD format.
CAL_QUARTER_START_DATE_IDNUMBER380First day of quarter in YYYYMMDD format.
CAL_QUARTER_END_DATE_IDNUMBER380Last day of quarter in YYYYMMDD format.
CAL_YEAR_END_DATE_IDNUMBER380Last day of year in YYYYMMDD format.
CAL_YEAR_START_DATE_IDNUMBER380First day of year in YYYYMMDD format.
FIRST_DAY_CAL_WEEK_FLAGVARCHAR216Indicates that this day is the first day of the calendar week.
LAST_DAY_CAL_WEEK_FLAGVARCHAR216Indicates that this day is the last day of the calendar week.
FIRST_DAY_CAL_MONTH_FLAGVARCHAR216Indicates that this day is the first day of the calendar month.
LAST_DAY_CAL_MONTH_FLAGVARCHAR216Indicates that this day is the last day of the calendar month.
FIRST_DAY_CAL_QTR_FLAGVARCHAR216Indicates that this day is the first day of the calendar quarter.
LAST_DAY_CAL_QTR_FLAGVARCHAR216Indicates that this day is the last day of the calendar quarter.
FIRST_DAY_CAL_YEAR_FLAGVARCHAR216Indicates that this day is the first day of the calendar year.
LAST_DAY_CAL_YEAR_FLAGVARCHAR216Indicates that this day is the last day of the calendar year.
CURRENT_CAL_DAY_CODEVARCHAR216Indicates current day. Possible value is Current.
CURRENT_CAL_WEEK_CODEVARCHAR216Indicates that this day belongs to current week. Possible value is Current.
CURRENT_CAL_MONTH_CODEVARCHAR216Indicates that this day belongs to current month. Possible value is Current.
CURRENT_CAL_QTR_CODEVARCHAR216Indicates that this day belongs to current quarter. Possible value is Current.
CURRENT_CAL_YEAR_CODEVARCHAR216Indicates that this day belongs to current year. Possible value is Current.
MONTH_END_OR_PRV_CRNT_DATEDATEFor current month, day before current date else Month end date
QUARTER_END_OR_PRV_CRNT_DATEDATEFor current quarter, day before current date else quarter end date
YEAR_END_OR_PRV_CRNT_DATEDATEFor current year, day before current date else year end date
TRAILING_MONTH_NUMBERNUMBER380Indicate trailing month number
TRAILING_QUARTER_NUMBERNUMBER380Indicate trailing quarter number
TRAILING_YEAR_NUMBERNUMBER380Indicate trailing year number
MONTH_END_OR_PRV_CRNT_DATE_ALTDATEFor current month, if current month start then month end date else day before current date else Month end date
QUARTER_END_OR_PRV_CRNT_DATE_ALTDATEFor current quarter, if current quarter start then quarter end date else day before current date else quarter end date
YEAR_END_OR_PRV_CRNT_DATE_ALTDATEFor current year,if current year start then year end date else day before current date else year end date

Copyright © 2019, 2026, Oracle and/or its affiliates.