0% found this document useful (0 votes)
752 views4 pages

Ad3381 Set3

Uploaded by

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

Ad3381 Set3

Uploaded by

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

B.E / B.Tech.

PRACTICAL END SEMESTER EXAMINATIONS, NOVEMBER/DECEMBER 2022

Third Semester

AD3381 - DATABASE DESIGN AND MANAGEMENT LABORATORY

(Regulations 2021)

Time : 3 Hours Answer any one Question Max. Marks 100

Aim/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total


required/Procedure Program/Drawing & Results
20 30 30 10 10 100

1. A database development life cycle is to be designed for a college to monitor students'


progress throughout their course of study. The students are reading for a degree (such as
BA, BA(Hons) MSc, etc) within the framework of the modular system. The college provides
a number of module, each being characterised by its code, title, credit value, module leader,
teaching staff and the department they come from. A module is co- ordinated by a module
leader who shares teaching duties with one or more lecturers..

2. Consider following databases and draw ER diagram and convert entities and relationships
to relation table for a given scenario.

COLLEGE DATABASE: STUDENT (USN, SName, Address, Phone, Gender)


SEMSEC (SSID, Sem, Sec) CLASS (USN, SSID)
SUBJECT (Sub code, Title, Sem, Credits)
IAMARKS (USN, Sub code, SSID, Test1, Test2, Test3, Final IA)

3. Draw an ER diagram of Library management system and convert into relational model
using any tool(Ex. ERDplus)

4. Consider Department table

DEPTNO DNAME LOCATION

Perform the following:

a. Rename the table dept as department

b. Add a new column PINCODE with not null constraints to the existing table DEPT

c. All constraints and views that reference the column are dropped automatically, along with
the column.

d. Rename the column DNAME to DEPT_NAME in dept table

e. Change the data type of column location as CHAR with size 10

Page 1 of 4
5. Create a table EMPLOYEE with following schema:

(Emp_no, E_name, E_address, E_ph_no, Dept_no, Dept_name,Job_id, Designation ,


Salary)

Write SQL queries for following:

a. Insert at least 5 rows in the table.

b. Display all the information of EMP table.

c. Display the record of each employee who works in department D10.

d. Delete table

6. Create a table called EMP with the following structure.

Name Type ---------- ----------------------

EMPNO NUMBER (6)


ENAME VARCHAR2 (20)
JOB VARCHAR2 (10)
DEPTNO NUMBER (3)
SAL NUMBER (7,2)

a. Allow NULL for all columns except ename and job.

b. Add constraints to check, while entering the empno value (i.e) empno > 100.

c. Define the field DEPTNO as unique.

d. Create a primary key constraint for the table (EMPNO).

e. Write queries to implement and practice constraints.

7. Consider the following and draw ER diagram:

A General Hospital consists of a number of specialized wards (such as Maternity,


Paediatry, Oncology, etc). Each ward hosts a number of patients, who were admitted on the
recommendation of their own GP and confirmed by a consultant employed by the Hospital.
On admission, the personal details of every patient are recorded.

8. Calculate the factorial of a number using Stored Procedures/function.

Page 2 of 4
9. Calculate the net salary and year salary if da is 30% of basic, hra is 10% of basic and pf is
7% if basic salary is less than 8000, pf is 10% if basic sal between 8000 to160000,using
Stored Procedures/function.

10. Develop the following Library Management System applications using back end(e.g Oracle)
and front end (e.g MySQL, Visual Basic) Tool.

11. a.Write a PL / SQL program to check whether the given number is prime or not

b. Write a PL/SQL program to accept a string and remove the vowels from the string.

12. a. Write a PL/SQL program to create a trigger before the user changes the value of the
salary of the employee.

b. Write a PL/SQL program to create a trigger before the user inserts the data into the table.

13. Design a Report Generation using Net beans or Visual Studio.

Consider the following schema for a Library Database:


14.
BOOK (Book_id, Title, Publisher_Name, Pub_Year)
BOOK_AUTHORS (Book_id, Author_Name)
PUBLISHER (Name, Address, Phone)
BOOK_COPIES (Book_id, Branch_id, No-of_Copies)
BOOK_LENDING(Book_id,Branch_id, Card_No, Date_Out, Due_Date)
LIBRARY_BRANCH (Branch_id, Branch_Name, Address)

Write SQL queries to (a). Retrieve details of all books in the library – id, title, name of
publisher, authors, number of copies in each branch, etc. (b). Get the particulars of
borrowers who have borrowed more than 3 books, but from Jan 2017 to Jun 2017 (c).
Delete a book in BOOK table. Update the contents of other tables to reflect this data
manipulation operation. (d). Partition the BOOK table based on year of publication.
Demonstrate its working with a simple query. (e). Create a view of all books and its number
of copies that are currently available in the Library

15. Develop the following Banking System applications using back end(e.g Oracle) and front
end (e.g MySQL, Visual Basic) Tool.

16. Develop a database design using UML class diagrams.

17. Design database schema for College Management application and apply normalization

18. Create an ER model for Mark management and perform EER to ODB mapping

Page 3 of 4
19. Develop an Inventory management system and express the relationship between entities
using Normalization.

20. Draw ER diagram of Publishing house management system and convert into relational
model using any tool.

Page 4 of 4

You might also like