Skip to content

Instantly share code, notes, and snippets.

CREATE SCHEMA IF NOT EXISTS common;
CREATE TABLE IF NOT EXISTS common.d_date
(
date_dim_id INT NOT NULL,
date_actual DATE NOT NULL,
epoch BIGINT NOT NULL,
day_suffix VARCHAR(4) NOT NULL,
day_name VARCHAR(9) NOT NULL,
day_of_week INT NOT NULL,
day_of_month INT NOT NULL,