------解决方案-------------------- 逐行累计吗?
请举例说明 我想你应该不会是问 sum where between 的吧 ------解决方案-------------------- select count(销售数量) as 销售数量累计 from t1 where 日期 between '2011-6-1' and getdate() ------解决方案-------------------- select sum(销售数量) as 销售数量累计 from t1 where 日期 between '2011-6-1' and getdate() ------解决方案--------------------