Skip to content

Instantly share code, notes, and snippets.

@jrgcubano
jrgcubano / CreateDateDimensionWithFiscals.sql
Created November 25, 2019 09:08 — forked from cgibson-dev/CreateDateDimensionWithFiscals.sql
A SQL script to create a Date dimension table with logic to specify fiscal dates.
BEGIN TRY
DROP TABLE [Dim].[Date]
END TRY
BEGIN CATCH
/*No Action*/
END CATCH
CREATE TABLE [Dim].[Date]
(