You are on page 1of 2

1) Display location of SMITH employee

2) Display dname of MILLER employee


3) Display details of emp who are working in newyork location
4) Display all mgrs of accounting dept
5) Display empno,ename,job,sal,dname,loc of all employees who are
working in research & sales depts. & joined in year 1981 in desc order
of dname
6) Display all emp ,dept details
7) Display all grade 2 employees
8) Display all grade 4 employees
9) Display all 3&4 grades of salesman who joined in year 1981 &
receiving some commission & working under some manager in asc
order deptno & grade
10) Display empno,ename,job,sal,deptno,grade of all employees
11) Display 3 & 4 grades of managers of newyork location
12) Display empno,ename,job,sal,loc,grade of all emp who joined in
the year 1981 & receiving sal more than 2000 & having exp more than
13) 18 years
SUB QUERIES
14) Display details of emp whose deptno same as smith deptno
15) Display details of emp whose job same as blake job
16) Display details of emp whose sal more than allen sal
17) Display details of emp who are senior to miller
18) Display details of emp who are senior to their own managers
19) Display all accounting dept emps who are receiving more than
allen sal
20) Display details of emp whose job same as accounting dept jobs
21) Display details of 4 & 5 grade emps whose job same as
accounting & researching.
AGGREGATE FUNCTIONS
22) Display max sal details
23) Display max sal details in dept no 10
24) Display most recent joined employee hiredate
25) Display max sal emp details
26) Display second max sal emp details
27) Display min sal in mgr job
28) Display most senior emp details
29) Display min sal in grade 3
30) Display total sal of all employees
31) Display avg sal in 10th dept
32) Count number of managers
33) Count number of emp who joined in year 81 & 83
34) Count number of emp who are receiving commission
35) Count number of emp work in accounting dept
36) Display max sal,min sal,avg sal,total sal and number of emp
37) Display max sal dept wise
38) Count number of emp dept wise
39) Count number of emp job wise
40) Count number of clerks from each dept
41) Display deptno where atleast 4 employees are working
42) Display deptno where atleast 2 clerks are working

You might also like