lec-11-ERD Examples
lec-11-ERD Examples
ERD Examples
Requirements for a bank database
2
1.Identifying the ENTITIES
3
1.Identifying the ENTITIES
4
2. Identifying the Attributes
5
2. Identifying the Attributes
6
3.Identifying the Primary Keys
7
Identifying the Relations
8
Identifying Relationships and
participation constraints
9
Identifying Relationships and
participation constraints
10
Identifying Relationships and
participation constraints
11
Identifying Relationships and
participation constraints
12
ER-D for bank database
13
In class Exercise ERD
Problem-1: International Courier Service, ICS, provides up-to-date
information on the processing and current location of each shipped item.
To do this, ICS relies on a company-wide information system in which
shipped items are characterized by unique item number, weight,
dimensions, insurance, destination, and final delivery date. Shipped items
are received into the ICS system at a retail centre. Retail centres are
characterized by their type, uniqueID, and address. Shipped items make
their way to destination via one or more standard ICS transportation
events (i.e., flights, truck deliveries). These transportation events are
characterized by a unique scheduleNumber, a type (e.g, flight, truck), and
a deliveryRoute. A transportation event may be carrying various shipped
item. Create an Entity Relationship diagram that captures this information
about the ICS system.
14
In class Exercise ERD
15
Problem-2: University database
We have students; each student has a unique ID, name, address, gender, major,
and contact no. A student can have multiple contact numbers.
We have courses, each course has a unique courseID, title, and number of credits
Students will register in courses in certain semesters. Each semester has a unique
ID, type (Fall, Spring, Summer) and a year associated with it. We need to keep
track of the grade that a student has received in a given course. The model should
allow a student to take the same course in different semesters.
16
ERD
17
Example 3
18