BA0015 - Lab Exercise 3
BA0015 - Lab Exercise 3
IN THE ORGANIZATION)
EXERCISE
3
Data Modeling using Enhanced E-R
The Enhanced Entity-Relationship model is the extension of the original ER model with
new modeling constructs. The new modeling constructs introduced in the EER model are
supertype/subtype relationships.
Supertype is a generic entity type that has a relationship with one or more subtypes.
Consider the entity type STUDENT (supertype), which has two subtypes
UNDERGRADUATE and POSTGRADUATE.
Specialization is the process of identifying subsets of an entity set (the superset) that
share some distinguishing characteristics. In specialization the supertype is defined first and
the subtypes are defined next.
INSTRUCTIONS:
Overview
Consider an online auction database system in which members (buyers and sellers)
participate in the sale of items. The data requirements for this system are summarized as
follows:
The online site has members who are identified by a unique member id and are
described by an email address, their name, a password, their home address, and a
phone number.
A member may be a buyer or a seller. A buyer has a shipping address recorded in the
database. A seller has a bank account number and routing number recorded in the
database.
Items are placed by a seller for sale and are identified by a unique item number
assigned by the system. Items are also described by an item title, an item description,
a starting bid price, bidding increment, the start date of the auction, and the end date
of the auction.
Items are also categorized based on a fixed classification hierarchy (for example a
modem may be classified as /COMPUTER/HARDWARE/MODEM).
Buyers make bids for items they are interested in. A bidding price and time of bid
placement is recorded. The person at the end of the auction with the highest bid price
is declared the winner and a transaction between the buyer and the seller may proceed
soon after.
Buyers and sellers may place feedback ratings on the purchase or sale of an item. The
feedback contains a rating between 1 and 10 and a comment. Note that the ratings are
placed on a completed transaction by the buyer or seller of the item in the transaction.
Task 1
Task 2
Draw an enhanced entity-relationship diagram using the Oracle SQL Developer Data
Modeler based from your answer in Task 1.
1. State two conditions that indicate when a designer should consider using
supertype/subtype relationships.
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
________
IV. ASSESSMENT
Note: The following rubrics/metrics will be used to grade students’ output in the lab
exercise.
Criteria Descriptions Points
Disjointness (overlap or The constraint allows us to specify 20
disjoint) whether an instance of a supertype may
simultaneously be a member of two or
more subtypes.