Try to calculate YearWeek - 202153 --> 202100 MSSQL

后端 未结 0 1031
长发绾君心
长发绾君心 2021-02-01 15:44

I try to calculate a yearisoweek within MSSQL. To get that, I use the following formula:

Datepart(year, Date) * 100 + datepart (iso_week, Date) AS ISOYearWeek


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题