当前位置:首页 > 史上最全Oracle数据库基本操作练习题(含答案)
.
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;
单纯的课本内容,并不能满足学生的需要,通过补充,达到内容的完善 教育之通病是教用脑的人不用手,不教用手的人用脑,所以一无所能。教育革命的对策是手脑联盟,结果是手与脑的力量都可以大到不可思议。
.
.
.
共分享92篇相关文档