Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

Calendar Tables III - Changing Business Rules Expand / Collapse
Author
Message
Posted Thursday, February 17, 2011 12:25 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Sunday, September 28, 2014 1:41 PM
Points: 959, Visits: 2,888
James A Skipwith (2/17/2011)
Todd,

Nice article. I also have large calendar tables to deal with - as one of my clients uses a rolling four week cycle starting the first saturday before February the 2nd, so as well as fiscal weeks to deal with I also have week 1-4 four each four week block! I too do not worry about optimising the SQL to populate this, as performance is not a considuration here, accuracy is.

Plus how come you get away with one page of forum questions where I have 4+ each time!

Look forward to more articles.

James

James,
Don't know how I only got one page.

That rolling 4 week block is an interesting business requirement. I can see how a calendar table would make life easier. I've found that with proper indexing of both the calendar table and the data tables performance can be better in most cases

I'm planning on doing the next calendar table article on the dreaded 4-4-5 accounting periods where a fiscal quarter is composed of 13 weeks and it bears no relationship to calendar months.
Todd Fifield
Post #1065926
Posted Saturday, May 24, 2014 12:15 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 7:02 PM
Points: 2,157, Visits: 879
Disappointing to see DateTime being used in this case where it is clearly a Date. Why bother with a Time portion to a Data Type when it will never be used ? If it's a Date then use the Data Type of DATE not DateTime or even SmallDateTime.
Post #1574284
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse