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-11-09 08:04:04
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)