Professional Documents
Culture Documents
commit
where e.empno=d.mgr
where e.mgr=d.empno
on e.mgr=d.empno
SELECT mgr from emp
group by mgr
select * from a
alter table a
delete from a
truncate table a
rename a to a1
drop table a1
select * from a1
desc a
commit
And A.job='MANAGER'
Order by A.sal ;
select deptno,max(sal)
from emp
group by deptno
order by deptno
select deptno,max(sal),ename,job from emp
group by deptno,ename,job
having
group by job
order by 2
group by deptno
group by deptno,job
having count(*)>1
order by deptno
order by 3 desc
group by deptno
having count(*)>4
order by 1
group by job,
order by 3
group by deptno
having sum(sal)>9000
group by job
having count(*)>1
create table tab2(id number(10))
group by mgr,deptno
having count(*)=1;
group by deptno
having count(*)>1
on e.deptno=d.deptno
minus
on d.deptno=e.deptno
on d.deptno<e.deptno
desc emp
where empno=7566
commit
where job='CLERK'
select job from emp
group by job
group by sal,ename,comm
order by 4 asc
group by sal,ename,comm
order by 4