Assignment DBMS1
Assignment DBMS1
2. Question 1.
Alice has a large DVD movie collection. Her friends like to
borrow her DVD's, and she needs a way to keep track of who
has what. She maintains a list of friends, identified by unique
FID's (friend identifiers) and a list of DVD's, identified by
DVDID's (DVD identifiers). With each friend is the name and the
all-important telephone numbers which she can call to get the
DVD back. With each DVD is the star actor name and title.
Whenever a friend borrows a DVD, Alice will enter that fact into
her database along with the date borrowed. Whenever the
DVD gets returned, that fact, too, gets noted along with the
date returned. Alice wants to keep a complete history of her
friends' borrowing habits so that she can ask favors of the
heavy borrowers (or perhaps refuse to make further loans to
those who habitually don't return them quickly).
Q1a. Below is an E-R diagram for a database to help Alice out.
Provide appropriate names for entities E1,E2; attributes A1,
A2,….A5; multi-value attribute A6, relationship R1, and
cardinality constraint C1min, C1max, C2min and C2max.
K1 K2
A2 A6
A3 A4
Entity E1 : Key K1 :
Attribute A1 : Attribute A2 :
Entity E2 : Key K2 :
Attribute A5 : Multi-value Attribute A6 :
(A) Both models allow a course to have more than one lecture from the
same lecturer
(B) Model B is more appropriate if information about all lectures, past
and present, is to be stored
(C) Model A does not allow lecture date and time to be stored
(D) Model B leads to more tables than Model A does when translated to
the relational model