Skip to content
Retour AccueilRetour Accueil

L'actualité technique MS SQL Server en France (et ailleurs)

L'actualité technique MS SQL Server en France (et ailleurs)

  • Sites francophones
  • Sites anglophones
  • Sites Microsoft
  • Vidéos
  • Script Center
  • Recherche
Accueil » Tous les articles » Sites anglophones » Creating a Date Dimension (Calendar Table) in SQL Server

Creating a Date Dimension (Calendar Table) in SQL Server

14 avril 2025  dans Sites anglophones  étiqueté Analytics / business intelligence / data analysis / Date Calculations / date dimension / Date Formatting / Date Functions / Date Metadata / Date Range / Fiscal Year / Recursive CTE / Reporting / SQL programming / SQL Queries / SQL Server / SQL Server 2022 / SQL Server Development / SQL Tips / t-sql / time intelligence / Time Series Analysis par sqlservercentral.com

Introduction

A calendar or date dimension table is essential for data analysis and reporting. It allows users to perform operations like calculating business days between two dates or analyzing data over time (e.g., year-over-year, month-to-month). In this article, we will walk you through creating a Date Dimension table in SQL Server, which will span 30 years, from January 1, 2010, to December 31, 2039. This will be a practical solution for reporting and analytics in various business scenarios.

We will also enhance the table by including useful metadata, such as fiscal year data, This will make it easier


Parcourir les articles

  • ← The Waitlist is Open Now for My SQLBits Workshop!
  • How to Remove Constraints from a SQL Server Table →

Cette compilation de ressources vous est proposée
par Arian Papillon, MVP Data Platform
mvp Datafly
Site sponsorisé par DATAFLY - www.datafly.fr
Microsoft et SQL Server sont des marques déposées de Microsoft Corporation

· © 2018 mssql.fr · Designed by Arian Papillon - Datafly ·

Retour haut de page