Entity Relationship Diagrams - PowerPoint PPT Presentation

About This Presentation
Title:

Entity Relationship Diagrams

Description:

Title: No Slide Title Author: Carolyn Seaman Description: Contains a total of about 21 minutes of audio Last modified by: Carolyn Seaman Created Date – PowerPoint PPT presentation

Number of Views:38
Avg rating:3.0/5.0
Slides: 27
Provided by: CarolynS155
Category:

less

Transcript and Presenter's Notes

Title: Entity Relationship Diagrams


1
Entity Relationship Diagrams
  • Used for conceptual data modeling - part of
    database design
  • Represents
  • the data that is important
  • the structure of the data
  • the relationships between different pieces of
    data
  • Does NOT show process, roles, users, etc.

2
Basic Elements
  • Entities
  • people, places, things
  • entity type is a set of things all of which have
    the same data properties
  • entity instance is one concrete example of the
    entity type
  • things that the system keeps track of, NOT things
    that are part of the system

3
Basic Elements (cont.)
  • Relationships
  • show how instances of one entity are related to
    instances of another entity
  • have cardinality and degree
  • Attributes
  • single pieces of data that describe an instance
    of an entity
  • like data elements

4
SSN
street
name
city
CUSTOMER
owner type
Has
account number
ACCOUNT
balance
Basic ER Diagram
5
Maiden
Last
Title
Middle
First
Suffix
Name
CUSTOMER
Composite Attribute
6
Maiden
Last
Title
Middle
First
Suffix
Name
Deductions
EMPLOYEE
Multivalued Attribute
7
Effective Date
Fills
POSITION
EMPLOYEE
Relationship with an Attribute
8
Effective Date
Employment History
POSITION
EMPLOYEE
Associative Entity
9
child
parent
person
parent
Unary Relationship
10
type
training
Talent
name
Performer
Performs
Show
address
dates
location
Ternary Relationship
11
type
training
Talent
name
Has
Used in
Performer
Show
address
dates
Performs in
location
Three Binary Relationships
12
Effective Date
EMPLOYEE
Fills
POSITION
Cardinality Constraints
13
account
balance
U
U
max overdraft
A supertype and subtypes
14
model number
model number
model number
make
price
make
price
make
price
LENS
CAMERA
FLASH
film type
requires
requires
BATTERY
size
type
15
model number
price
PHOTO EQUIPMENT
make
U
U
U
LENS
CAMERA
FLASH
film type
requires
requires
BATTERY
size
type
16
DateEnrolled
DateEnrolled
SSN
SSN
Degree
STUDENT
Graduation Date
GRADUATE
Grade
TRANSCRIPT
TRANSCRIPT
Grade
Date
Date
COURSE
17
DateEnrolled
SSN
Grade
TRANSCRIPT
STUDENT
Date
COURSE
U
U
Degree
Graduation Date
FORMER
CURRENT
Generalization
18
SUPPLIER
Wastage
SuppliedBy
Has Ingredients
ITEM
Quantity
Part of a grocery store database
19
Quantity
Has Ingredients
ITEM
U
U
U
BAKERY ITEM
SUPPLIED ITEM
SuppliedBy
PERISHABLE ITEM
SUPPLIER
Specialization
Wastage
20
DOB
DOB
PRIMATE
BIRD
HABITAT
Origin
Food
4-LEGGED ANIMAL
REPTILE
DOB
DOB
Origin
Food
Part of a Zoo database
21
Origin
Food
DOB
HABITAT
ANIMAL
U
U
U
U
PRIMATE
BIRD
4-LEGGED ANIMAL
REPTILE
Specialization
22
Origin
Food
DOB
HABITAT
ANIMAL
Class
Replacing a set of subtypes with an attribute
23
model number
price
PHOTO EQUIPMENT
make
type
type
lens
flash
U
U
camera
U
LENS
CAMERA
FLASH
film type
requires
requires
Disjoint specialization with discriminator
BATTERY
size
type
24
MOTHER
Has
OFFSPRING
U
U
BAD CHILDREN
GOOD CHILDREN
Total, disjoint specialization
25
MOTHER
Has
SentCard
OFFSPRING
SentCard
No
Yes
U
U
BAD CHILDREN
GOOD CHILDREN
Total, disjoint specialization with discriminator
26
DateEnrolled
SSN
Grade
TRANSCRIPT
STUDENT
Status
Date
Enrolled?
Status
Graduated?
COURSE
GraduatedY
EnrolledY
U
U
Degree
Graduation Date
FORMER
CURRENT
Overlapping specialization with discriminator
Write a Comment
User Comments (0)
About PowerShow.com