Anda di halaman 1dari 1

SQL Assignment 1

Dated:
Table Names: 1) emp
2) dept
1)
2)
3)
4)
5)
6)
7)
8)
9)
10)
11)
12)
13)
14)
15)
16)
17)
18)
19)
20)
21)
22)
23)
24)
25)

List all the information about all employees from emp table
List all employee names along with their salaries from emp.
List the employees belonging to the department 20
List the names of clerks working in the department no 20
List the names of analysts and salesmen.
List the names of employees who are not managers.
List the names of the employees whose employee number are 7369, 7521, 7839,
7788.
List the employee name and salary, whose salary is between 10000 and 20000.
List the different jobs available in the emp table.
List the employees whose names start with S.
List the employee names having I as the second character.
List out the employees whose name start with S and end with H
List out the employees whose name length is 4 and start with S
List out the employees who are working in department 10 and draw the salaries more
than 35000
List the name, salary and PF amount of all the employees (PF is calculated as 10% of
salary).
List the empno, ename, sal in ascending order of salary.
List the employee name, salary, job and deprtment no in ascending order of
department no and then descending order of salary.
List the details of all employees residing in delhi
List the details of all employees not residing in delhi
List the details of all employees residing in delhi and earn more than 30000
List the number of employees working with the company.
List the number of jobs available in the emp table.
List the total salaries payable to employees.
List the maximum salary of employee working as a salesman.
List the average salary and number of employees working in the department 20.
***************