10
oracle 中如何用avg函数求出3个月的平均费用,如2008年1-3月的平均费用,表中的费用字段是charge.用avg(charge)的结果不正确,请高手指教
我有更好的答案
2014-06-20 10:41
最佳答案
select avg(sum(charge)) from 费用 group by 月份 where 时间 between 1月 and 3月
其他回答
应该可以的。
select avg(charge) from 费用 where 时间 between 1月 and 3月
select avg(charge) from 费用 where 时间 between 1月 and 3月
大话残剑
发布于2008-05-09 22:52
举报
评论