schuitkds
asked on
sql compare date ranges based on week#'s
I am looking for a way to design a query in SQL to compare date ranges based on week#
current years week# range compared to previous year(s) date ranges with the same week# as current period.
one issue i have seen is some years have 53 weeks?
any help or guidance would be greatly appreciated
current years week# range compared to previous year(s) date ranges with the same week# as current period.
one issue i have seen is some years have 53 weeks?
any help or guidance would be greatly appreciated
I have found the f_table_date function found here:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=61519
to be extremely powerful and helpful.
select * from dbo.F_TABLE_DATE('1/1/2015 ', '1/1/2016')
you have the start_of_week_starting_mon _date as a field and the iso_week_no as a week number.
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=61519
to be extremely powerful and helpful.
select * from dbo.F_TABLE_DATE('1/1/2015
you have the start_of_week_starting_mon
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER