我有以下表结构: table={id,DailyDate,value1,value2} 与 DailyDate ex。2000-01-01
对于每个值,我如何首先获得每月汇总结果,然后每年获得汇总结果?
我正在尝试以下但它不起作用
Select Sum(Value1),Year(DailyDate),Month(DailyDate)
From table
Group by Year(DailyDate),Month(DailyDate)
Order by Year(DailyDate),Month(DailyDate)
泰