Nicholas Duffy
Posted on February 7, 2020
If you’ve ever read any of Ralph Kimball’s data warehouse books or have any experience with modeling data in the Kimball style, you know that a date dimension is a key part of any star schema. You probably found resources for creating Oracle, SQL Server or MySQL but may have had difficulty finding SQL to create a date dimension table for PostgreSQL. Here’s a bit of code adapted from the PostgreSQL wiki that I like for creating the ever necessary date dimension in PostgreSQL.
💖 💪 🙅 🚩
Nicholas Duffy
Posted on February 7, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
docker DOCKER and DOCKER COMPOSE: Run Dependencies Without Installing Them in Your Environment
November 30, 2024
undefined SQL: Identify associated member groups without common points of association #eg82
November 29, 2024
undefined Two-Factor Authentication Using Better_Auth, Next.js, Prisma, ShadCN, and Resend
November 29, 2024
authorization How to Set Up Authorization in a Bookstore Management System with Go, HTMX, and Permit.io
November 29, 2024