Lab Manual On ADDBMS 29-11-2023
Lab Manual On ADDBMS 29-11-2023
2023-24
Lab Manual
Lab Assessment Methodology
Mr./Ms.___________________________________________ PRN
Program Director
INDEX
Sr. Page
Title of the Assignment Date Remark Signature
No. No.
The internal continuous assessment will be of 50 marks and end semester lab examination
will be of 50 marks.
Sr.
Distribution of Marks Marks
No.
Continuous Assessment:
1 60
After finishing every practical instructor should give the marks to
respective assignment and evaluate those marks at the end of the trimester.
This workbook is intended to be used by students for the laboratory course. In Computer
science, hands-on laboratory experience is critical to the understanding of theoretical
concepts studied in the theory courses. This assignment book covers numerous computing
problems covering all difficulty levels. This book will describe the continuous assessment of
the course.
This assignment book is mandatory for the completion of the laboratory course. It is a
measure of the performance of the student in the laboratory for the entire duration of the
course.
3. Instructions to the students
1. Students are expected to carry this book every time they come to the lab for
practical session
2. Students should solve assignments which are selected by instructor as a part of
practical session. However, students are free to solve additional assignments to
do more practice for their practical examination.
Set B Hard
1. After a student completes a specific assignment, the instructor has to verify the
outputs and sign in the provided space after the activity
2. Ensure that the students use good programming practices
3. Instructor should evaluate each assignment carried out by a student on a scale of
5
ASSIGNMENT NO. 1: Create the Following Table
B. COLLEGE DATABASE:
STUDENT (USN, SName, Address, Phone, Gender)
SEMSEC (SSID, Sem, Sec)
CLASS (USN, SSID)
SUBJECT (Subcode, Title, Sem, Credits)
IAMARKS (USN, Subcode, SSID, Test1, Test2, Test3, FinalIA)
A. COMPANY DATABASE:
EMPLOYEE (SSN, Name, Address, Sex, Salary, SuperSSN, DNo)
DEPARTMENT (DNo, DName, MgrSSN, MgrStartDate)
DLOCATION (DNo,DLoc)
PROJECT (PNo, PName, PLocation, DNo)
WORKS_ON (SSN, PNo, Hours)
Remark: _____________________________________________________________
Start Date: _____________________ Date of Completion:
_____________________
Signature of the Instructor: _________________________
ASSIGNMENT NO. 2:
2. Consider the MOVIE DATABASE
ASSIGNMENT NO. 4:
Consider Dept table
DEPTNO DNAME LOC
Remark: _____________________________________________________________
Start Date: _______________ Date of Completion:
_____________________
Signature of the Instructor: _________________________
5B. For the tables you created in exercise 3
Create tables and perform the following
1. How the resulting salaries if every employee working on the ‘Research’ Departments is given a
10 percent raise.
2. Find the sum of the salaries of all employees of the ‘Accounts’ department, as well as the
maximum salary, the minimum salary, and the average salary in this department
3. Retrieve the name of each employee Controlled by department number 5 (use EXISTS
operator).
4. Retrieve the name of each dept and number of employees working in each department which
has at least 2 employees
5. Retrieve the name of employees who born in the year 1990’s
6. Retrieve the name of employees and their dept name (using JOIN)
Remark: _____________________________________________________________
Start Date: _______________ Date of Completion:
_____________________
Signature of the Instructor: _________________________
ASSIGNMENT NO. 6:
For the employee table created in example 3
Perform the Following
1. Creating Views (With and Without Check Option),
2. Selecting from a View
3. Dropping Views,
Remark: _____________________________________________________________
Start Date: _______________ Date of Completion:
_____________________
Signature of the Instructor: _________________________
ASSIGNMENT NO. 7:
Experiment 7
Write a Pl/SQL program to print integers from 1 to 10 by using PL/SQL FOR loop
ASSIGNMENT NO. 8:
Given the table EMPLOYEE (EmpNo, Name, Salary, Designation, DeptID) write a cursor to select
the five highest paid employees from the table.
Remark: _____________________________________________________________
Start Date: _______________ Date of Completion:
_____________________
Signature of the Instructor: _________________________
ASSIGNMENT NO. 9:
Illustrate how you can embed PL/SQL in a high-level host language such as C/Java And
demonstrates how a banking debit transaction might be done.
Remark: _____________________________________________________________
Start Date: _______________ Date of Completion:
_____________________
Signature of the Instructor: _________________________
ASSIGNMENT NO. 10:
Given an integer i, write a PL/SQL procedure to insert the tuple (i, 'xxx') into a given relation.
Remark: _____________________________________________________________
Start Date: _______________ Date of Completion:
_____________________
Signature of the Instructor: _________________________
ASSIGNMENT NO. 11:
Create Teacher table with the following fields(Name, DeptNo, Date of joining,
DeptName, Location, Salary)
( a ) Insert five records
( b ) Give Increment of 25% salary for Mathematics Department .
( c ) Perform Rollback command
( d ) Give Increment of 15% salary for Commerce Department
( e ) Perform commit command
Remark: _____________________________________________________________
Start Date: _______________ Date of Completion:
_____________________
Signature of the Instructor: _________________________
Write PL/SQL queries to create Procedures.
ASSIGNMENT NO. 13: Write PL/SQL queries to create Procedures
Remark: _____________________________________________________________
Start Date: _______________ Date of Completion:
_____________________
Signature of the Instructor: _________________________
Write PL/SQL queries to create Procedures.
ASSIGNMENT NO. 14: Write a PL/SQL program to demonstrate
Packages
Remark: _____________________________________________________________
Start Date: _______________ Date of Completion:
_____________________
Signature of the Instructor: _________________________
Write PL/SQL queries to create Procedures.
ASSIGNMENT NO. 15: Write PL/SQL queries to create Triggers.
Remark: _____________________________________________________________
Start Date: _______________ Date of Completion:
_____________________
Signature of the Instructor: _________________________