In Teradata SYS_CALENDAR.CALENDAR
for year 2018 , the WEEK_OF_YEAR
is starting from Sunday to Saturday. But I wanted WEEK_OF_YEAR
to start from Monday to Sunday as 1
.
so 01-Jan-2018 to 07-Jan-2018
WEEK_OF_YEAR
will be 1
:
:
and 31-Dec-2018
WEEK_OF_YEAR
will be 53
(Once year ended, should agian start from 1)
and 01-Jan-2019 to 06-Jan-2019
WEEK_OF_YEAR
will be 1