Assignment DB
Assignment DB
(Hints: The students can refer to the book “ Database Systems Design,
Implementation, and Management” of Carlos Coronel Steven Morris 13th - Chapter 1
(especially pages 7-27 to find answers)
1. Construct an ER diagram for a car insurance company whose customers own one or
more cars each. Each car can be associated with it zero to any number of recorded
accidents. Each insurance policy covers one or more cars and has one or more
premium payments associated with it. Each payment is for a particular period of
time, and has an associated due date, and the date when the payment was received.
2. Consider a database at a university storing the marks of students received in different
exams of different courses. This database includes the entity sets: student, course,
and exam
a. Construct an ER diagram illustrating the relationships between entities in
which a ternary relationship is required.
b. Construct another ER diagram that uses only a binary relationship between
student and exam. Make sure that only one relationship exists between student and
exam, yet you can represent the marks that a student gets in different exams of a
course.
3. Design an ER diagram for keeping track of the scoring statistics of your favorite
sports team. You should store the matches played, the scores in each match, the
players in each match, and individual player scoring statistics for each match.
Summary statistics should be modeled as derived attributes with an explanation as
to how they are computed.
Assignment 3: : Database Design and the Entity Relationship Model (ERM)
1. Construct an E-R diagram for a hospital with a set of patients and a set of medical
doctors. Each patient is associated with a log of the various tests and examinations
conducted.
2. Construct an E-R diagram for an airline. The database must keep track of customers
and their reservations, flights and their status, seat assignments on individual flights,
and the schedule and routing of future flights.
3. Construct an E-R diagram for an automobile company to provide to its dealers to
assist them in maintaining customer records and dealer inventory and to assist sales
staff in ordering cars. Each vehicle is identified by a vehicle identification number
(VIN). Each individual vehicle is a particular model of a particular brand offered by
the company (e.g., the XF is a model of the car brand Jaguar of Tata Motors). Each
model can be offered with a variety of options, but an individual car may have only
some (or none) of the available options. The database needs to store information about
models, brands, and options, as well as information about individual dealers,
customers, and cars.
4. Construct an E-R diagram for a worldwide package delivery company (e.g., DHL or
FedEx). The database must be able to keep track of customers who ship items and
customers who receive items; some customers may do both. Each package must be
identifiable and trackable, so the database must be able to store the location of the
package and its history of locations. Locations include trucks, planes, airports, and
warehouses.