You are on page 1of 1

Course: DBMS Semester: Summer BSCS/SE/IT

Time Duration: 90 minutes Total Marks: 40 Instructor: Ms. Sadaf Ali

Instructions: Read out instructions carefully


 Read assignment carefully and answer all questions.
 Copied assignment will be awarded ZERO
 Submission of the assignment is to be done on “sadafkamboh66@gmail.com”
 If there is any query regarding exam ask via email/whatsapp/personal message
 Make a folder containing .sql file and word file as “name-roll#-final term”

Question #1 [40]

This scenario is taken from online video rental company:


The Company has data about movies, customers, rentals, reviewers, reviews.
_ A Movie has a Title (key), Year, and Duration and genre (horror, comedy, animation)
_ A Customer has Name, Email (key), mobile no and Credit. A customer can possess zero or
many numbers registered on his name.
_ Customers rent movies; customers may rent many movies, and a movie may be rented by many
customers; each Rental has a Date. Rental days can be calculated using date.
_ A Reviewer is a Customer, and has a Reputation attribute.
_ A Review has a Rating, a Date, and Text (content). Each review is uniquely identified by the
movie it is reviewing, and by the reviewer who wrote it. Review’s age can be calculated by using
review date.

Draw relational Model for online video rental company, and then normalize it to 3NF.
If normalization is not possible then write not possible.
Write DDL and DML commands for all tables with primary key and referential integrity
constraints.

FINAL TERM summer LAHORE LEADS UNIVERSITY

You might also like