I need to add a column to show the week number of the year in my procedure.
By default the SQL Server considers the week starts as Sunday and shows the week number.
But I need to calculate the week number starts from Saturday.
Code:
select datepart(week,'11-july-2020')
Output I get:
28
Output I need:
29
It should start considering from the week starts as Saturday and ends on Friday.