DBMS Lab 3
DBMS Lab 3
Lab Assignment 3
Name: Instructor:
Prathmesh Bansal Mukesh Sakle Sir
Enrollment Number:
0801IT201067
1
Prathmesh Bansal 0801IT201067
Output:
Output:
Output:
2
Prathmesh Bansal 0801IT201067
Output:
Output:
6. List employees names, Sal and annual sal from Emp table.
Query:
Output:
3
Prathmesh Bansal 0801IT201067
7. Develop a salary sheet from emp table consisting of empno, ename, job, sal,
comm, house rent computed at 25% of sal, Medical Allowance at 15% of
sal, Transport Allowance at 10% of sal, and Net salary consisting of sal,
house rent, medical allowance, transport allowance and comm. of the
employees.
Query:
Output:
Output:
4
Prathmesh Bansal 0801IT201067
Output:
10. List of all employees who are managers of department number 10.
Query:
Output:
11. List of all employees who are clerks of department number 10.
Query:
Output:
Output:
5
Prathmesh Bansal 0801IT201067
13. List of all employees who are working in department number 10.
Query:
Output:
14. List of all employees who are not working in department number 10,12.
Query:
Output:
15. List of all employees who are either manager of department number 10 or
are analysts.
Query:
Output:
6
Prathmesh Bansal 0801IT201067
Output:
Output:
Output:
7
Prathmesh Bansal 0801IT201067
Output:
Output:
Output:
8
Prathmesh Bansal 0801IT201067
Output:
Output:
9
Prathmesh Bansal 0801IT201067
24. Join ename and job, then change the column heading as comp_name.
Query:
Output:
25. List all records as follows: Smith is clerk and he is working in Dept no
20 Since 12-Mar-1981.
Query:
Output:
10
Prathmesh Bansal 0801IT201067
26. Find those employees whose commission is less than their salaries.
Query:
Output:
Output:
Output:
29. List all employees having the last letter in their name 'R' or 'N'.
Query:
Output:
11
Prathmesh Bansal 0801IT201067
30. List all employees having the first letter in their name 'W', or 'K' and they
don't belong to department number 10 or 20.
Query:
Output:
12