计算在SQL Server中排除周末(周一到周五)的天数

如何计算SQL Server 2008中表(从第1行到结尾)的两个日期之间的工作天数? 我试过这样的东西,但它不起作用 DECLARE @StartDate as DATETIME, @EndDate as DATETIMESelect @StartDate = date2 from testtable ;select @EndDate = date1 from testtable ;S

返回顶部