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

Ad3381 Set2

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)
198 views4 pages

Ad3381 Set2

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. Draw a Database development life cycle for Inventory Management system and draw a ER
diagram for the system using any ERD tools like SqlDBM with all the possible entities and
relationships.

2. Construct the ER diagram for Restaurant Ordering system and specifies entity relationship
like Key attribute, Composite attribute, Multivalued etc…using ERD tools.

3. Develop a EER concept using ERD tools by applying cardinalities for Student-Teacher
relationship using the appropriate Mapping cardinality(hint-Use specialization approach).

4. Create a relational database Schema and apply the Normalization concept in it to get a
optimized structure.

5. Consider the following relations for a transport management system application:

DRIVER (DRIVER_CODE, DNAME, DOB, GENDER)


CITY (CITY_CODE, CITY_NAME)
TRUCK (TRUCK_CODE, TRUCK_TYPE)

i. Include the constraint as mentioned above and the gender of driver is always 'male'.
ii. Develop a SQL query to list the details of each driver and the number of trips traveled.

6. Consider the Insurance database given below.

PERSON(driver_ID, name, address)


CAR(regno, model,year )
ACCIDENT(report_number,accd_date,location)
OWNS(driver_id,regno)
PARTICIPATED(driver_id,regno,report_number,damage_amount)

Page 1 of 4
i. Specify the primary keys and foreign keys and enter at least five tuples for each
relation.

ii. Update the damage amount for the car with specific regno in the accident with report
number 1025.

iii. Add a new accident to the database.

iv. Find the total number of people who owned cars that were involved in accidents in the
year 2018.

Find the number of accidents in which cars belonging Wagon R were involved.

7. Consider the following Tables for a bus reservation system application with constraints

BUS (ROUTENO, SOURCE, DESTINATION)


PASSENGER (PID, PNAME, DOB, GENDER)
BOOK_TICKET (PID, ROUTENO, JOURNEY_DATE, SEAT_NO)

i. Include constraint that DOB of passenger should be after 2000

ii. Display the passengers who had booked the journey from Mumbai to Chennai on 02-
Feb-2019

iii. List the details of passengers who have traveled more than three times on the same
route.

iv. Create a View that displays the Route No, source, destination and journey date which
moves from Chennai to Delhi.

In the above created procedure, include exceptions to display "No ticket booked on specified
date" for a given journey date

8. Design a database for school website, use staff, student, teacher, parents and management
etc…as an entities and Perform all the DCL and TCL functions in that website.

9. Write a procedure called proc_udate is created and stored in the database. This procedure
when called in PL/SQL block updates the qty_on_hand in the product_master table it also
updates the order_status in the sales_order table.

 Prodct_master { product_no, description, profit_percentage, unit_measure,


qty_on_hand, recorder_level, sell_price, cost_price }

 Sales_order {order_no, order_date, client_no, dely_address, salesman_no, dely_type,


billed_yn, delay_date, order_status }

Page 2 of 4
10. Create a Procedure for Placement and Training cell.

Stud_details(regno, name, dept, percentage)


Company(companyID,name, no_of_vacancy)
Training_Details(CourseID, name, Trainer)

Placed(regno, companyID,minSal)

i. List the students who are eligible for recruitment in a particular company.

ii. Display the student who has been placed with highest salary

11. An Electricity Board charges the following rates to domestic users to discourage large
consumption of energy:

For the first 1 - 200 units { 1 - 100 units = Rs. 1.00, 101 - 200 units = Rs.1.50 }
From 201 - 500 units{ 1 - 200 units = Rs. 2.00 and 201 - 500 units = Rs. 3.00 }
Above 500 units{ 1 - 200 = Rs. 3.50, 201- 500 unit = Rs. 4.60 &above 500 unit Rs.6.60}

Write a PL/SQL program to read the connection_id of users and number of units consumed,
display the charges with names.

12. Consider the following relations for an order processing application:

CUSTOMER (CID, NAME)


PRODUCT (PCODE, PNAME, UNIT_PRICE)
CUST_ORDER (OCODE, ODATE, CID)
ORDER_PRODUCT (OCODE, PCODE, QTY)

i. Develop a Trigger to ensure the product to be Pen , Eraser, Pencil during insertion

ii. Develop a PL/SQL Function to calculate the total cost of ordered product.

iii. Use Sequence for PCODE insertion in product table

13. Develop a EER concept using ERD tools by applying mapping cardinalities for each relation
using bottom-up approach (generalization).

14. Write a PL/SQL function to calculate the income tax for the given employee:

Conditions:

If pay  2,50,000, no tax is charged.


If pay is  2,50,001 and  5,00,000, 5% of pay is charged as tax.
If pay is  5,00,001 and  10,00,000, 20% of pay is charged as tax.
If pay is  10,00,001, 30% of pay is charged as tax. .

Page 3 of 4
15. Develop the following applications using back end(e.g Oracle) and front end (e.g Netbeans,
Visual studio) Tool.

 Hotel Management System

16. Develop the following applications using Oracle as a back end using back end(e.g Oracle)
and front end (e.g Netbeans, Visual studio) Tool.

 Online Pharmacy System

17. Draw an Use case diagram, class diagram , sequence diagram, Activity diagram for Stock
Management system using Rational rose or StarUML

18. Create Use case diagram, object diagram , sequence diagram, deployment diagram for Car
Rental Service using Rational rose or StarUML

19. Construct a table for library Management systems which extracts the features of UDTs and
Inheritance.(Hint-Primary key, Foreign key, Candidate key)

20. Develop an ER model for Agriculture Management Systems and perform EER to ODB
mapping

Page 4 of 4

You might also like