云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 史上最全Oracle数据库基本操作练习题(含答案)

史上最全Oracle数据库基本操作练习题(含答案)

  • 62 次阅读
  • 3 次下载
  • 2025/5/1 9:30:26

.

from emp) where 排名=4;

42.查找EMP表中前5条记录 。 select * from emp where rownum<=5;

43.查找EMP表中10条以后的记录 。

select * from (select e.*,row_number() over(order by empno) 排名 from emp e) where 排名>10;

44.查找EMP表中薪水第5高的员工 。

select empno from (select empno,rank() over(order by sal desc) as r from emp) where r=5;

45.查找EMP表部门30中薪水第3的员工 。

select empno from (select empno,rank() over(order by sal desc) as r from emp where deptno=30) where r=3;

46.查找EMP表中每部门薪水前3的员工。

select * from (select e.*,row_number() over(partition by e.deptno order by e.sal desc) 排名 from emp e) where 排名<=3;

单纯的课本内容,并不能满足学生的需要,通过补充,达到内容的完善 教育之通病是教用脑的人不用手,不教用手的人用脑,所以一无所能。教育革命的对策是手脑联盟,结果是手与脑的力量都可以大到不可思议。

.

.

.

  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

. from emp) where 排名=4; 42.查找EMP表中前5条记录 。 select * from emp where rownum<=5; 43.查找EMP表中10条以后的记录 。 select * from (select e.*,row_number() over(order by empno) 排名 from emp e) where 排名>10; 44.查找EMP表中薪水第5高的员工 。 select empno from (select empno,rank() over(order by sal desc) as r from emp) where r=5; 45.查找EMP表部门30中薪水第3的员工 。 select empno from

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com