SQLServer中是否有关于季度的函数
1个回答
展开全部
declare @base datetime, @beg_date, @end_date
set @base = '20000101'
set @beg_date = dateadd(QUARTER ,@qrt - 1,DATEADD(year, @year - 2000, @base))
set @end_date = dateadd(QUARTER ,@qrt ,DATEADD(year, @year - 2000, @base)) - 1
set @base = '20000101'
set @beg_date = dateadd(QUARTER ,@qrt - 1,DATEADD(year, @year - 2000, @base))
set @end_date = dateadd(QUARTER ,@qrt ,DATEADD(year, @year - 2000, @base)) - 1
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询