Professional Documents
Culture Documents
CMPT 354
Jian Pei
jpei@cs.sfu.ca
ER Design
• Overview of the Design Process
• The Entity-Relationship Model
• Complex Attributes
• Mapping Cardinalities
• Primary Key
• Removing Redundant Attributes in Entity Sets
• Reducing ER Diagrams to Relational Schemas
• Entity-Relationship Design Issues
• Aggregation
• Specialization and generalization is NOT required in Midterm 2
receiver_ packet
place
time_received Locations include trucks, place_id
planes, airports, and city
country
warehouses address
As an alternative:
place
place_id
city
country
address
has_dealer
customer
options customer_id
dealer name
options_id address
dealer_id
specification name
address
3NF: for all a ® b in F+ at least one of the following holds: BCNF: for all functional dependencies in F+ of
• a ® b is trivial (i.e., b Î a) the form a ® b, where a Í R and b Í R, at
• a is a superkey for R least one of the following holds: a ® b is
• Each attribute A in b – a is contained in a candidate key for R trivial (i.e., b Í a); or a is a superkey for R