Numéro de la semaine SQL Server
datepart(wk, DateToParse)
Kaeffa
datepart(wk, DateToParse)
SELECT TO_CHAR(your_table.date_colunm, 'DAY')
FROM your_table;
SELECT
DATEADD(DAY, 2 - DATEPART(WEEKDAY, GETDATE()), CAST(GETDATE() AS DATE)) [Week_Start_Date],
DATEADD(DAY, 8 - DATEPART(WEEKDAY, GETDATE()), CAST(GETDATE() AS DATE)) [Week_End_Date]