Lab-1 and 2 Solution Qazi Mujtaba
Lab-1 and 2 Solution Qazi Mujtaba
LAB # 01
Name: Qazi Mujtaba Enrollment: 01-235171-050
Section: BS (IT)-4 (B) Date: 22/102021
6. List the department name & deptno for departments having deptno.>=20
Solution:
7. Display employees’ names, salary and manager values of those employees whose salary is 500
from EMP table using SELECT statement.
Solution:
9. Increment the salary of each employee 10 times and then display the annual salary along with
emp#, employee names and dept# from EMP table.
Solution:
11. List the name,salary,commision of the employees where commision is greater than their salary.
Solution:
12. List the name and empno of managers who earn more than 2000.display the result in
alphabetical order of the name.
Solution:
13. List the details of the employees in the depts of 10 & 20 in the order of empno.
Solution:
DATABASE MANAGEMENT SYSTEM LAB
LAB # 02
1. List the name, monthly salary and daily salary and hourly salary for employee; assume that
there are 22 working days in a month,8 working hours in a day. Display the rows with column
names as monthly, daily &hourly sal.
Solution:
2. List the name and empno of managers who earn more than 2000.display the result in
alphabetical order of the name.
Solution:
5. Display the information about the managers and clerks from the column ‘Job’ in the table
emp,order the result by deptno.
Solution:
8. List the names of the employees starts with T/t and ends with R/r.
Solution:
11. List all rows in employee table by converting commission column to zero.
Solution: