SELECT COUNT(*)
FROM MASTER..SPT_VALUES
WHERE TYPE = 'P'
AND DATEADD(DAY,NUMBER,'2014-03-13')<='2014-03-26'
AND DATEPART(WEEKDAY,DATEADD(DAY,NUMBER,'2014-03-13')) IN (6,7)
2023-09-23 11:02:15
SELECT COUNT(*)
FROM MASTER..SPT_VALUES
WHERE TYPE = 'P'
AND DATEADD(DAY,NUMBER,'2014-03-13')<='2014-03-26'
AND DATEPART(WEEKDAY,DATEADD(DAY,NUMBER,'2014-03-13')) IN (6,7)