0% found this document useful (0 votes)
39 views

Assignment DB

The document contains four assignments related to database design and the entity relationship model. The assignments involve constructing ER diagrams for scenarios like a car insurance company, a university marking system, a sports team scoring statistics, a hospital, an airline, an automobile company, and a package delivery company.

Uploaded by

tamvinhxuan123
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Assignment DB

The document contains four assignments related to database design and the entity relationship model. The assignments involve constructing ER diagrams for scenarios like a car insurance company, a university marking system, a sports team scoring statistics, a hospital, an airline, an automobile company, and a package delivery company.

Uploaded by

tamvinhxuan123
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment 1: Introduction

1. List four significant differences between a file-processing system and a DBMS.


2. Assume that two students are trying to register for a course in which there is only
one open seat. What component of a database system prevents both students from
being given that last seat?
3. Describe at least three tables that might be used to store information in a social
networking system such as Facebook.

(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)

Assignment 2: Database Design and the Entity Relationship Model (ERM)

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.

You might also like