Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine week by Month and Month Week
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01653958
Message ID:
01654002
Vues:
47
J'aime (1)
>What is a real technical reason that calculating on the fly is not as good as having a table? (aside from the fact that you don't like it :))

Take a look at this great article and others in this series

https://www.sqlshack.com/designing-a-calendar-table/

Basically, every database needs to have a Dates table. It has so many business applications and solves so many problems, that you don't want to calculate things when you can have them pre-calculated already.

BTW, that particular article was recommended by a great SQL Server MVP in this thread

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/76114693-d331-4dfc-9488-b14923683c9c/veterans-day-update-statement?forum=sqlgetstarted
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform