我想做,如下的统计,日累计,月累计,年累计
Item Color Quantity 日期
-------------------- -------------------- --------------------------
Table Blue 124 2004-01-01
Table Red 223 205-01-01
Chair Blue 101
Chair Red
基础表如上:我想做到如下的效果 :
日累计 月累计 年累计
table blue quantity合计 table blue quantity合计 table blue quantity合计
如何做到这种查询,请大家给予帮助.必须在一个界面上显示所有的累计.