- 1、本文档共14页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
对Oracle中分组函数的一点点理解(外国英语资料)
对Oracle中分组函数的一点点理解
Group by is sometimes used to use the following grouping functions
Count (AVG) (max) (); / / general application in the digital.
Min (); sum ()
If the grouping function is used in the program, there are two things that can be used:
1. Group by is present in the program and the grouping conditions are formulated so that the grouping conditions can be queried together
2. If you do not use group by, you can only use the grouping function alone
So: select deptno, count from EMP (empno); / / error: not a single group function
Change: select, deptno, count (empno), from, EMP, group, by, deptno;
Select deptno, ename, count (empno) from EMP group by deptno; / / error: not a group by expression
The summary is that the group, by, and group functions give the concept of the field group, and in that case the group by is modified
Fields and fields that are modified by group functions are group fields, and the preceding is not a group field, and of course there is an error
Where, group, by, having, order, by, -----wgho --- I walk
Required to show an average wage greater than 2000 of the department number and average wage.
Select, deptno, AVG (SAL)
From EMP
Where AVG (SAL) 2000
Min (); sum ()
If the grouping function is used in the program, there are two things that can be used:
1. Group by is present in the program and the grouping conditions are formulated so that the grouping conditions can be queried together
2. If you do not use group by, you can only use the grouping function alone
So: select deptno, count from EMP (empno); / / error: not a single group function
Change: select, deptno, count (empno), from, EMP, group, by, deptno;
Select deptno, ename, count (empno) from EMP group by deptno; / / error: not a group by expression
The summary is that the group, by, and group functions give the concept of the field group, and in that case the group by is modified
Fields and fields that are modified by group functions are group fields, and the preceding is not
您可能关注的文档
- 中产阶级:心理弱势群体(外国英语资料).doc
- 中国与本国修建差别(外国英语资料).doc
- 中国人合法移民美国途径汇总(内地最全最完整移民美国方法汇总)(外国英语资料).doc
- 中国北京十大家具家居品牌(外国英语资料).doc
- 中国历史变法,人物(外国英语资料).doc
- 中山嘉明电力有限公司(外国英语资料).doc
- 中幼林抚育实施方案(外国英语资料).doc
- 中等教育学名词总集(外国英语资料).doc
- 中药的煎药方法直接影响效果(外国英语资料).doc
- 丰富渠道上的品项结构(外国英语资料).doc
- 2023年甘肃省兰州市城关区草场街街道招聘社区工作者真题及参考答案详解1套.docx
- 2023年甘肃省兰州市城关区草场街街道招聘社区工作者真题参考答案详解.docx
- 2023年甘肃省兰州市城关区盐场路街道招聘社区工作者真题附答案详解.docx
- 2023年甘肃省兰州市城关区盐场路街道招聘社区工作者真题及完整答案详解1套.docx
- 2023年甘肃省兰州市城关区酒泉路街道招聘社区工作者真题附答案详解.docx
- 2023年甘肃省兰州市城关区盐场路街道招聘社区工作者真题及参考答案详解一套.docx
- 2023年甘肃省兰州市城关区皋兰路街道招聘社区工作者真题及完整答案详解1套.docx
- 2023年甘肃省兰州市城关区皋兰路街道招聘社区工作者真题及答案详解一套.docx
- 2023年甘肃省兰州市城关区白银路街道招聘社区工作者真题附答案详解.docx
- 2023年甘肃省兰州市城关区焦家湾街道招聘社区工作者真题附答案详解.docx
最近下载
- 电力调度数据网络接入技术规范及网络拓扑图.doc VIP
- ZZGA高频开关整流器使用说明书.doc
- 危重患者院内转运PPT.pptx VIP
- 匀变速直线运动的速度与时间的关系课件 2024-2025学年高一上学期物理人教版(2019)必修第一册.pptx VIP
- 《科学发展观》课件.ppt VIP
- 匀变速直线运动的位移与时间的关系 课件 -2024-2025学年高一上学期物理人教版(2019)必修第一册.pptx VIP
- 2022年西安市灞桥区事业单位考试真题.docx VIP
- 【课件】匀变速直线运动的位移与时间的关系+课件高一上学期物理人教版(2019)必修第一册.pptx VIP
- 2024西安市灞桥区事业单位考试笔试题库及答案.docx VIP
- 福建专升本 “三个代表” 重要思想(思维导图).pdf VIP
文档评论(0)