ccdw_dim_date

This table contains various attributes related to dates, providing detailed temporal information. Each record represents a calendar date and its component parts (year, quarter, month, week, day).

Column AliasData TypeKeyDescriptionIndex?
day_id (PK)SMALLINTPKUnique identifier for a specific day.Yes
day_timestampDATETimestamp representing the start of the day.Yes
day_of_yearSMALLINTDay number within the year (1-366).No
day_of_monthSMALLINTDay number within the month (1-31).Yes
day_of_weekSMALLINTDay number within the week (for example, 1 for Monday).No
day_of_week_shortVARCHARShort name for the day of the week (for example, "Mon").No
day_of_week_longVARCHARLong name for the day of the week (for example, "Monday").No
day_display_nameVARCHARUser-friendly display name for the day.No
week_idSMALLINTUnique identifier for a specific week.Yes
week_timestampDATETimestamp representing the start of the week.Yes
week_of_yearSMALLINTWeek number within the year (1-53).No
week_of_year_shortVARCHARShort representation of the week of the year.No
week_of_year_longVARCHARLong representation of the week of the year.No
week_display_nameVARCHARUser-friendly display name for the week.No
month_idSMALLINTUnique identifier for a specific month.Yes
month_timestampDATETimestamp representing the start of the month.Yes
month_of_yearSMALLINTMonth number within the year (1-12).Yes
month_of_year_shortVARCHARShort representation of the month of the year.No
month_of_year_longVARCHARLong representation of the month of the year (for example, 'Jan').No
month_display_nameVARCHARUser-friendly display name for the month (for example, 'January').No
quarter_idSMALLINTUnique identifier for a specific quarter.Yes
quarter_timestampDATETimestamp representing the start of the quarter.Yes
quarter_of_yearSMALLINTQuarter number within the year (1-4).No
quarter_shortVARCHARShort representation of the quarter.No
quarter_longVARCHARLong representation of the quarter.No
quarter_display_nameVARCHARUser-friendly display name for the quarter.No
year_idSMALLINTUnique identifier for a specific year.Yes
year_timestampDATETimestamp representing the start of the year.Yes
year_of_eraSMALLINTYear number within its era.Yes
year_display_nameVARCHARUser-friendly display name for the year.No
weekyear_idSMALLINTUnique identifier for a specific week-year.Yes
weekyear_timestampDATETimestamp representing the start of the week-year.Yes
weekyear_of_eraSMALLINTWeek-year number within its era.No
weekyear_display_nameVARCHARUser-friendly display name for the week-year.No