CREATE TABLE IF NOT EXISTS CHC_DW.DIM_DATE
(
    DATE_KEY INT NOT NULL,
    DATE_VALUE DATE NOT NULL,
    DAY_OF_WEEK INT NOT NULL,
    DAY_NAME VARCHAR(10) NOT NULL,
    DAY_OF_MONTH INT NOT NULL,
    DAY_OF_YEAR INT NOT NULL,
    WEEK_OF_YEAR INT NOT NULL,
    MONTH_NAME VARCHAR(10) NOT NULL,
    MONTH_OF_YEAR INT NOT NULL,
    QUARTER INT NOT NULL,
    PRIMARY KEY (DATE_KEY)
);