0% found this document useful (0 votes)
29 views28 pages

Lab Manual On ADDBMS 29-11-2023

The document provides instructions for students taking an MCA lab course on advanced database management systems. It outlines the assessment methodology, which includes a lab book, performance, and participation worth 60% of the total marks, and an end of term exam worth 40% of the total marks. The document also lists 13 assignments that students must complete, covering entity relationship diagrams, relational algebra queries, SQL commands, views, procedures, packages, and triggers. Students are instructed to have their work verified and marked by instructors upon completion of each assignment.

Uploaded by

madhura.rahalkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views28 pages

Lab Manual On ADDBMS 29-11-2023

The document provides instructions for students taking an MCA lab course on advanced database management systems. It outlines the assessment methodology, which includes a lab book, performance, and participation worth 60% of the total marks, and an end of term exam worth 40% of the total marks. The document also lists 13 assignments that students must complete, covering entity relationship diagrams, relational algebra queries, SQL commands, views, procedures, packages, and triggers. Students are instructed to have their work verified and marked by instructors upon completion of each assignment.

Uploaded by

madhura.rahalkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 28

MCA Science

2023-24

MCA Semester III

Course Code: MCA 120B


Course Name: Advance Database
Management System

Lab Manual
Lab Assessment Methodology

Class Continuous Assessment (CCA): 60 Marks

Lab book: 20 marks


Lab Performance: 30 marks
Lab Participation: 10 Marks

Term End Examination: 40 Marks

Total assessment: 100 Marks


ASSIGNMENTS ON
LAB COURSE – MBT7PM02A
Lab on Advanced Web Technologies

MCA (Science): Semester III


Name: ___________________________________________

PRN No.: _____________Division: ____________________


Certificate
This is to certify that

Mr./Ms.___________________________________________ PRN

No._____________, a student of MCA (Science), Semester III has successfully

completed _______ no. of assignments in Lab Course on MBT7PM02A Lab on

Advanced Database Management System during A.Y. 2023-24.

Subject Teacher Program Head

Program Director
INDEX
Sr. Page
Title of the Assignment Date Remark Signature
No. No.

MCAB Lab on Advanced Database Management


Draw an E-R diagram and convert entities
and relationships to relation table for a
given scenario.

1 a. Two assignments shall be carried


out i.e. consider two different scenarios
(eg. bank, college)

Write relational algebra queries for a given


set of relations.

1.Find movies made after 2022


2 2. Find movies made by Hanson after 2222
3. Find all movies and their ratings
4. Find all actors and directors
5. Find Coen’s movies with McDormand

Perform the following:


a. Viewing all databases, Creating a
Database,
b. Viewing all Tables in a Database,
3 Creating Tables (With and Without
Constraints),
Inserting/Updating/Deleting
Records in a Table,
c. Saving (Commit) and Undoing
(rollback)
Perform the following:
a. Altering a Table,
4 Dropping/Truncating/Renaming
Tables, Backing up / Restoring a
Database.
For a given set of relation schemes, create
tables and perform the following Simple
Queries, Simple Queries with Aggregate
functions, Queries with Aggregate
functions (group by and having clause),
5 Queries involving- Date Functions, String
a. Functions , Math Functions
b. Join Queries- Inner Join, Outer Join
c. Subqueries- With IN clause, With
EXISTS clause
For a given set of relation tables perform
the following
a. Creating Views (with and
6 without check option),
b. Dropping views,
c. Selecting from a view

7 Write a Pl/SQL program using FOR loop to


insert ten rows into a database table.
Given the table EMPLOYEE (EmpNo, Name,
Salary, Designation, DeptID) write a cursor
8
to select the five highest paid employees
from the table.
Illustrate how you can embed PL/SQL in a
high-level host language such as C/Java And
9
demonstrates how a banking debit
transaction might be done.
Given an integer i, write a PL/SQL
10 procedure to insert the tuple (i,
'xxx') into a given relation.
Write a program to read employee
information like emp_no, emp_name,
11 designation and salary from EMP table
and display all this information using
table format.
12 Roll back and commit command

13. Write PL/SQL queries to create


Procedures.
14 Write a PL/SQL program to demonstrate
Packages.
15 Write PL/SQL queries to create Triggers.
INSTRUCTIONS
Practical Evaluation Format

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.

End Trimester Examination:


2 40
Practical examination should be conducted by preparing slips which will
contain 2 programs other than those which are covered in assignment book

1. About the assignment book

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.

2. How to use this assignment book

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.

Exercise Difficult Level

Set A Easy & Medium

Set B Hard

3. Student will be assessed for each assignment on a scale of 5

Instruction to the Instructors

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

Write following relational algebra queries for a given set of relations.


1. Find movies made after 1997
2. Find movies made by Hanson after 1997
3. Find all movies and their ratings
4. Find all actors and directors
5. Find Coen’s movies with McDormand
Remark:
___________________________________________________________

Start Date: ______________ Date of Completion: _____________________


Signature of the Instructor: _________________________
ASSIGNMENT NO. 3:
Consider the Company database with following tables
Create Table EMPLOYEE with the following field Name
Ename, Lname, SSN, Bdate, Address, Gender, Salary, SuperSSN, DNO,
Create Table DEPARTMENT with the following field Name
Dname, DNO, MGRSSN, MGRSTARTDATE
Fill data 8 rows of data according to your choice

Perform the following:


1. Create company database
2. Viewing all databases
3. Viewing all Tables in a Database,
4. Creating Tables (With and Without Constraints)
5. Inserting/Updating/Deleting Records in a Table
6. Saving (Commit) and Undoing (rollback)
Remark: _____________________________________________________________
Start Date: _______________ Date of Completion: ____________________
Signature of the Instructor: _________________________

ASSIGNMENT NO. 4:
Consider Dept table
DEPTNO DNAME LOC

Perform the following:


1. Rename the table dept as department
2. Add a new column PINCODE with not null constraints to the existing table DEPT
3. All constraints and views that reference the column are dropped automatically, along with the
column.
4. Rename the column DNAME to DEPT_NAME in dept table
5. Change the data type of column loc as CHAR with size 10
6. Delete table
Remark: _____________________________________________________________
Start Date: ______________Date of Completion: _____________________
Signature of the Instructor: _________________________
ASSIGNMENT NO. 5:
A. Consider Employee table

Perform the following


1. Display all the fields of employee table
2. Retrieve employee number and their salary
3. Retrieve average salary of all employee
4. Retrieve number of employee
5. Retrieve distinct number of employee
6. Retrieve total salary of employee group by employee name and count similar names
7. Retrieve total salary of employee which is greater than >120000
8. Display name of employee in descending order
9. Display details of employee whose name is AMIT and salary greater than 50000;

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:

Write a program to read employee information like emp_no, emp_name, designation


and salary from EMP table and display all this information using table format.
Remark: _____________________________________________________________
Start Date: _______________ Date of Completion:
_____________________
Signature of the Instructor: _________________________
ASSIGNMENT NO. 12: Rollback and Commit commands

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

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. 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: _________________________

You might also like