Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hi all,HI all,Is there a query to get the dates in a week range. When I pass week number and Year as input it should return all dates in the particular week.For e.g:If I pass 34 as weeknum and 2006 as year , it should return dates from Aug 20th to Aug 26thThanks in advanceVk59`
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts
Posted - 2006-08-28 : 09:54:55
You have to define when the first week of the year starts before we can help you. Different organizations use different rules to define the "week of ywar".For example:Does it start on Jan 1?Does it start on the first Sunday of the year?Does it start on the first Sunday on or before Jan 4 of the year?Some other rule?CODO ERGO SUM
vk59
Starting Member
38 Posts
Posted - 2006-08-29 : 00:09:45
Thank you very much`
SwePeso
Patron Saint of Lost Yaks
30421 Posts
Posted - 2006-08-29 : 00:55:42
God bless you and have mercy on your soul!Peter LarssonHelsingborg, Sweden