Hi All
In our SQL Server 2000 database, we have a table for our internal financial calendar.
This table contains the fields:
'Type' (= W or P for 'Week' or 'Period')
'Financial Year End' (Currently 2007)
'Week No'
'Period No'
'Start Date' and 'End Date' (for weeks and periods)
and lastly (for week records only) a field which tells us which period that week falls into.
My question is, given a week number and the financial year end, how to tell whether that week is the last week in the period that it falls into? Please let me know if this information needs clarifying.
Thanks in advance
Geraint
The lights are on but nobody's home, my elevator doesn't go to the top. I'm not playing with a full deck, I've lost my marbles. Barenaked Ladies - Crazy
In our SQL Server 2000 database, we have a table for our internal financial calendar.
This table contains the fields:
'Type' (= W or P for 'Week' or 'Period')
'Financial Year End' (Currently 2007)
'Week No'
'Period No'
'Start Date' and 'End Date' (for weeks and periods)
and lastly (for week records only) a field which tells us which period that week falls into.
My question is, given a week number and the financial year end, how to tell whether that week is the last week in the period that it falls into? Please let me know if this information needs clarifying.
Thanks in advance
Geraint
The lights are on but nobody's home, my elevator doesn't go to the top. I'm not playing with a full deck, I've lost my marbles. Barenaked Ladies - Crazy