DBMS - Practical List - 1-4
DBMS - Practical List - 1-4
Sector-28 Gandhinagar
Sem:-III (Computer Engineering Department)
Subject: DATABASE MANAGEMENT SYSTEM Subject Code:-3130703
Lab Manual
Sr. No. Date Practical Aim Signature
1 To study DDL-create and DML-insert commands.
2 Create the below given table and insert the data accordingly.
3 To perform various data manipulation commands, aggregate
functions and sorting concept on all created tables.
1
Practical – 1: To study DDL-create and DML-insert commands.
DEPOSIT
BRANCH
BNAME CITY
VRCE NAGPUR
AJNI NAGPUR
KAROLBAGH DELHI
CHANDI DELHI
DHARAMPETH NAGPUR
M.G.ROAD BANGLORE
ANDHERI BOMBAY
VIRAR BOMBAY
NEHRU PLACE DELHI
POWAI BOMBAY
CUSTOMERS
CNAME CITY
ANIL CALCUTTA
SUNIL DELHI
MEHUL BARODA
MANDAR PATNA
MADHURI NAGPUR
PRAMOD NAGPUR
SANDIP SURAT
SHIVANI BOMBAY
2
KRANTI BOMBAY
NAREN BOMBAY
BORROW
3
Practical – 2: Create the below given table and insert the data accordingly.
4
MK_MGR Marketing manager 9000 15000
FI_MGR Finance manager 8200 12000
FI_ACC Account 4200 9000
LEC Lecturer 6000 17000
COMP_OP Computer Operator 1500 3000
5
Practical – 3: To perform various data manipulation commands, aggregate functions and
sorting concept on all created tables.
6
Practical – 4: To study Single-row functions.
1) Write a query to display the current date. Label the column Date
2) For each employee, display the employee number, job, salary, and salary increased by 15%
and expressed as a whole number. Label the column New Salary
3) Modify your query no 4.(2) to add a column that subtracts the old salary from the new salary.
Label the column Increase
4) Write a query that displays the employee’s names with the first letter capitalized and all other
letters lowercase, and the length of the names, for all employees whose name starts with J, A,
or M. Give each column an appropriate label. Sort the results by the employees’ last names.
5) Write a query that produces the following for each employee: <employee last name> earns
<salary> monthly
6) Display the name, hire date, number of months employed and day of the week on which the
employee has started. Order the results by the day of the week starting with Monday.
7) Write a query to calculate the annual compensation of all employees (sal+comm.).
7
8