Database Beginners guide
Database Beginners guide
Modern Database
Management
8th Edition
Jeffrey A. Hoffer, Mary B. Prescott,
Fred R. McFadden
Relationships:
Relationship instance–link between entities (corresponds to
primary key-foreign key equivalencies in related tables)
Relationship type–category of relationship…link between
entity types
Entity
Attribute
symbols
symbols
A special entity
that is also a Relationship
relationship symbols
Relationship
degrees specify
number of
entity types Relationship
involved cardinalities
specify how
many of each
entity type is
allowed
Chapter 3 © 2007 by Prentice Hall 10
What Should an Entity Be?
SHOULD BE:
An object that will have many
instances in the database
An object that will be composed of
multiple attributes
An object that we are trying to model
SHOULD NOT BE:
A user of the database system
An output of the database system
(e.g., a report)
Chapter 3 © 2007 by Prentice Hall 11
Figure 3-4 Example of inappropriate entities
System System
user Inappropriate output
entities
Appropriate
entities