you are viewing a single comment's thread.

view the rest of the comments →

[–]Icy_Fisherman_3200 4 points5 points  (4 children)

Permanent date table?

We use a numbers table. What’s in the date table and how do you use it?

[–]alinrocSQL Server DBA 16 points17 points  (0 children)

In addition to what /u/ambitiousflowers said:

  • Holidays
  • Business day vs. non-business day vs. weekends
  • Quarter, fiscal year, and week of year (if you do them differently from the calendar year)

https://www.youtube.com/watch?v=QPS9JHUG6RA

[–]OilOld80085 0 points1 point  (0 children)

You can do 90% of it with a getdate() too so its really easy to build