这些是查询
select count(sales) as weeksales from salesdairy where propertytype in ('item1') and DATEPART( wk, time)=DATEPART( wk,getdate())
select count(sales) as monthsales from salesdairy where propertytype in ('item1') and MONTH(time) = MONTH(getdate())
select count(sales) as yearsales from salesdairy where propertytype in ('item1') and YEAR(time) = YEAR(getdate())
是否可以组合所有这些查询以获得输出为
周销售月销售年销售
有任何想法吗?