You are on page 1of 1

Set 1: Tables Emp, Dept, salgrade

1. Select the employees in department 30.


2. List the names, numbers and departments of all clerks.
3. Find the department numbers and names of employees of all departments with deptno greater
than 20.
4. Find the details of all the managers (in any dept) and clerks in dept 20.
5. Find the different jobs of employees receiving commission.
6. Find all the employees who were hired in the month of February (of any year).
7. Display the names of all the employees without any trailing R.
8. Show the first 3 and last 3 characters of the names of all the employees.
9. Display the details of all the employees sorted on the names.
10. Display the names of the employees, based on the tenure with the oldest employee coming first.
11. List all the department names along with the names of employees in them , irrespective of the
fact whether any employee is there or not.
12. List all the employee names along with the names of their bosses, irrespective of the fact
whether any employee has boss or not.
13. List department number and each distinct pair of employees working in that department.
14. Display department name and average salary for that department. Include only those employees
who have joined after 1st July 2001.
15. Find average annual salary of all the employees except analysts.
16. List employee name , hiredate, manager name, managers hiredate of all employees who are
hired before their managers.
17. Display the job and the difference between the highest and the lowest salary for each job.
18. List employee name and hiredate of all employees who are in the same dept. as BLAKE.
Exclude BLAKE.
19. Display grade 2 employees in Finance department who will complete 3 years in March this year.
20. List analysts and clerks who are either staying at Chicago or Boston and in grade 3 and above.
21. Display department name, grade, Max salary offered to each grade at each department.
22. Whos earning the best salary in each grade and where do they live?
23. Display the locations where total salary of grade 3 employees is greater than total salary of
grade 4 employees.
24. Find all duplicate records in STUDENT table.
25. Delete all duplicate records from STUDENT table.

You might also like