Professional Documents
Culture Documents
Database Design - ERD Model (Chen Crowfoot) PDF
Database Design - ERD Model (Chen Crowfoot) PDF
Database Design - ERD Model (Chen Crowfoot) PDF
1 M
Lines with labels represents Cardinality
2
Entity (Chen Notation)
• is a real-world object distinguishable or unique from
other objects.
• An entity can be a concrete or physical object like
employee, student, faculty, customer etc. Or it could
also be conceptual or abstract like transaction, order,
course, subjects etc.
• It can be thought of as a noun like student, employee
etc.
• It is normally represented by a rectangle shape.
3
Database Background
• Entity could be a :
Person (ex. Teacher, Student, Physician)
Order
Parts
5
Relationship
• is a way of relating one entity to another. Entities can
therefore participate in a relationship.
• it is commonly thought as a verb connecting the entities
or nouns.
• It is normally represented by a diamond shape.
6
Relationship - Example
has
7
Cardinality
8
Cardinality - Symbols
1 M
One-is-to-many Relationship
M N
Many-to-many Relationship
9
Cardinality Symbols - Example
1 M
Sales Rep represents Customer
10
Cardinality Symbols – Example
(Cont’d)
M N
Order has Parts
11
Degree of Relationship
12
Degree of Relationship (Cont’d)
Unary
Binary
Ternary
13
Degree of Relationship (Cont’d)
Manages
Unary
Employee
makes
Customer Orders Binary
Part
14
Attribute
• Refers to the characteristic or basic fact or field of an
Entity or Relationship.
• For example a Student entity could have the following
attributes ID Number, Last Name, First Name,
Address, Birth Date etc.
• A relationship could also have an attribute for example
an Entity name Student enrolls (relationship) to a
Course/Program. Now, when you enroll you enroll on
a certain date so you will have an attribute of
Enrollment Date under Enroll relationship.
• It is normally represented by an oval.
15
Attribute - Example
Firstname Lastname
RepNum
Street
City
Sales Rep
State
Take note that
a Primary Key
Rate is underlined.
Zip Commission
16
Attribute – More Example
CustomerName
CustomerNum
Firstname Lastname
RepNum
Street
Street
1 M
City City
Sales Rep represents Customer
State
State
17
Crow’s Foot notation - Symbol
Entity name
Attribute 1
Attribute 2
Attribute 3
Attribute 4
18
Crow’s Foot notation - Example
Entity
Student
StudentID
Firstname
Lastname Attributes
Gender
Program
19
Crow’s Foot notation - Keys
Student
20
Crow’s Foot Cardinality - Symbols
21
Crow’s Foot notation – with Cardinality
Customer
Rep Customernum(PK)
Customername
Repnum (PK)
Street
Firstname
City
Lastname
State
Commission
Zip
Rate
Balance
CreditLimit
Repnum (FK)
22
End
23