暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
分析函数
747
20页
13次
2020-05-27
免费下载
The Documents of ORCLE
By neves
cuitao@uplooking.com
www.UPLOOKING.com
分析函数
AVG expr
返回表达式的平均值
Example:
HR@orcl10g> select manager_id, last_name, hire_date, salary,
2 avg(salary) over (partition by manager_id order by hire_date
rows between 1 preceding and 1 following) c_mavg
3 from employees;
HR@orcl10g> select AVG(salary) "Avg Salary" from employees;
Partition by :表示如何分组
Order by :表示排序
Rows between :表示窗口大小
本例中表示本记录上下各取一行进行计算
of 20
免费下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜