11个问题,最少55元
--题目1,大写部分的看不懂啥玩意
select t.name,mod(t.sal,nvl(t.comm,1)) from emp t where t.deptno=20
--简答2
select t.ename from emp t
where t.comm is null and exists
(select 1 from emp t1 where t.name<>t1.name and nvl(t.comm,0)>nvl(t1.comm,0))
--简答3
select t.ename,t.sal,t.hiredate from emp t where t.empno=(select max(empno) from emp)
--简答4
select t.ename from emp t
where exists
(select 1 from emp t1 group by t1.deptno having t.sal>avg(t1.sal))
--简答5
select t.ename from emp t where t.name not like '%S%'
--简答6
select * from emp t where length(t.ename)=5
--第二块的简答1
select t.ename,t1.dname,t.job
from emp t join dept t1
on t.deptno=t1.deptno
where t1.loc='NEW YORK'
--简答2
select t.ename, t.sal from emp t
join emp t1 on t.mgr=t1.empno
where t1.name='KING'
--简答3
select t.ename ,t.hiredate from emp t where t.deptno=
(select deptno from emp where name='scott')
--简答4
select t.empno,t.ename from emp t where t.deptno=
(select deptno from emp where name like '%u%')
--简答5
select t.deptno,t.dname,t1.cityno from dept t join city t1 on t.loc=t1.loc
只能说 题目到位了
哈哈,这题目也太多了
🥹问了11道题
这是在考场发的照片吗