Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Last 52 weeks

$
0
0

I have a week number say 201642 in nvarchar. I want to calculate data for last 52 weeks. 

How can i find last 52 weeks when a weeknum 201642 is given?

Also need to take care Leap years

Also is there any way to find YYYYQQ of that week? like week 201602 is quarter 201601


Shaky



Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>