SQL 60 Queries
SQL 60 Queries
SQL QUERIES
6) Display the employee name and annual salary for all employees.
7) Display the names of all the employees who are working in depart number 10.
8) Display the names of all the employees who are working as clerks and
9) Display the employee number and name who are earning comm.
10) Display the employee number and name who do not earn any comm.
12) Display the names of the employees who are working in the company for
13) Display the list of employees who have joined the company before
15) Display the list of all users in your database(use catalog table).
20) Display the Employee names for employees whose name ends with alphabet S.
21) Display the names of employees whose names have second alphabet A in their
names.
22) select the names of the employee whose names is exactly five characters in
length.
23) Display the names of the employee who ar e not working as MANAGERS.
24) Display the names of the employee who are not work ing as SALESMAN OR
CLERK OR ANALYST.
25) Display all rows from EMP table. The system should wait after every
32) Display the maximum salary being paid to depart number 20.
35) Display the total salary drawn by ANALYST working in depart number 40.
36) Display the names of the employee in order of salary i.e the name of
39) Display empno,ename,deptno,sal sort the output first base on name and
40) Display the name of the employee along with their annual salary(sal*12).The
name of the employee earning highest annual salary should apper first.
output should be in the order of total salary,hra 15% of salary,da 10% of salary,pf
5%
42) Display depart numbers and total number of employees working in each
department.
43) Display the various jobs and total number of employees within each job
group.
44) Display the depart numbers and total salary for each department.
45) Display the depart numbers and max salary for each department.
46) Display the various jobs and total salary for each job
48) Display the depart numbers with more than three employees in each dept.
49) Display the various jobs along with total salary for each of the jobs
50) Display the various jobs along with total number of employees in each
job.The output should contain only those jobs with more than three employees.
51) Display the name of the empployee who earns highest salary.
52) Display the employee number and name for employee working as clerk and
53) Display the names of salesman who earns a salary more than the highest
Display the names of employees who earn a salary more than that of
55) Display the names of the employees who earn highest salary in their
respective departments.
56) Display the names of the employees who earn highest salaries in their
57) Display the employee names who are working in accounting department.
59) Display the Job groups having total salary greater than the maximum
60) Display the names of employees from department number 10 with salary