(yy,0,getdate()), 0)
--4.季度的第一天
SELECT DATEADD(qq, DATEDIFF(qq,0,getdate()), 0)
--5...,0,getdate())+1, 0))
--9.本年的最后一天
SELECT dateadd(ms,-3,DATEADD(yy, DATEDIFF(yy,0,getdate()...(day,-5-datepart(weekday,getdate()),convert(varchar,getdate(),112))
and create_day<dateadd(day,2-...datepart(weekday,getdate()),convert(varchar,getdate(),112))
--本月注册人数
select count(*) from... [user]
where create_day>=dateadd(day,1-day(getdate()),convert(varchar,getdate(),112))
and