Server 2008中有一个SQL查询,如下所示:declare @Waited8_12 varchar(max)declare @Waited12_18 varchar(max) = 'true'
choice = case when @Waited6_8 = 'true' then '6-true' then '8-12'
我有一个很好的查询。该查询基本上从当前日期开始检索6-8天之间的数据。在测量数据的年龄时,我想不包括周末。DATEADD(day, -6, GETDATE()) AND CreatedDate >= DATEADD(day, -8, GETDATE()) -- here I get data between 6-