|
I need to add a workday value to a calander table The work day is YYYY### as a char 7 The ### is three digits but should not consider weekends for the workday so 2012-01-02 should = 2012001 then monday, 2012-01-09 will be 2012006 I also need my week # to begin on my fiscal calander of dec to november Something like
(comments are locked)
|
|
This probably makes a few assumptions about what weekday the week starts on, and how to treat the last week of November/first week of December and so on, but it should get you started. Also I'm not sure a recursive CTE is ideal for generating lists of numbers. I know it's only 365 in this case... I need to do a better job understanding the ability to re use the cte's as you've done above...thank you so much
Dec 29 '11 at 07:57 PM
siera_gld
(comments are locked)
|

