Skip to content

Instantly share code, notes, and snippets.

View c3rberus's full-sized avatar

c3rberus c3rberus

View GitHub Profile
@c3rberus
c3rberus / CreateDateDimensionWithFiscals.sql
Created October 30, 2020 23:22 — 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]
(