Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Calculate week of year when Monday is the first day of week - response (2) by Harpreet Singh

$
0
0
Hi, Below SQl will help you to get week of year for week starting on monday. SEL calendar_date, (day_of_year - (day_of_calendar -1) mod 7 + 6) / 7 as week_of_year FROM sys_calendar.calendar where year_of_calendar=2013 HTH Harpreet        

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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