You are on page 1of 3

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 she keeps track of his/her name,
home phone number and Cell phone number which she can call to get the DVD
back. With each DVD, she keeps track of the star actor name and movie 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). For this she will keep track of DVDID, FID, date borrowed, and date
returned. 

Requirements: 

Design an ER schema for this application, and draw an ER diagram for that
schema.

Specify key attributes of each entity type and structural constraints on each
relationship type. Note any unspecified requirements, and make appropriate
assumptions to make the specification complete.

Schema:
a) Each Friend has a unique FID, a list of borrowed DVDs, a name, a home and cell
phone number. Each borrowed dvd has a date borrowed and a date returned.
b) Each DVD has a unique DVDID, star actor name, and title.
Diagram:
2. What is an entity type?

An entity type is a definition for a collection of entities with the same attributes.

What is an entity set?

An entity set is the collection of entities within a particular type.

3. Explain the difference between an attribute and a value set.


An attribute is a property that describes an entity, where as a value set is the specific
set of values that can be assigned to the attributes.

4. What is a relationship type? Explain the differences among a relationship


instance, a relationship type and a relationship set.
Relationship instances are the individual relationships among entities. A relationship set
is the set of associations among entities. The relationship type is made up of the
relationship set of a particular entity type.

You might also like