Professional Documents
Culture Documents
Chapter 2: Entity-Relationship Model
Chapter 2: Entity-Relationship Model
Entity Sets
Relationship Sets
Design Issues
Mapping Constraints
Keys
ER Diagram
&
2.1
c
Silberschatz, Korth and Sudarshan
1997
'
Entity Sets
&
2.2
c
Silberschatz, Korth and Sudarshan
1997
'
Attributes
&
Null attributes.
Derived attributes.
2.3
c
Silberschatz, Korth and Sudarshan
1997
'
Relationship Sets
customer entity
relationship set
account entity
&
2.4
c
Silberschatz, Korth and Sudarshan
1997
'
customer-name
balance
customer-city
depositor
customer
&
account-number
customer-street
2.5
account
c
Silberschatz, Korth and Sudarshan
1997
'
&
2.6
c
Silberschatz, Korth and Sudarshan
1997
'
Roles
telephone-number
manager
works-for
employee
worker
&
2.7
c
Silberschatz, Korth and Sudarshan
1997
'
Design Issues
&
2.8
c
Silberschatz, Korth and Sudarshan
1997
'
Mapping Cardinalities
&
Many to many
2.9
c
Silberschatz, Korth and Sudarshan
1997
'
social-security
One-To-One Relationship
customer-street
customer-name
amount
loan-number
customer-city
borrower
customer
loan
&
2.10
c
Silberschatz, Korth and Sudarshan
1997
'
customer-street
customer-name
amount
loan-number
customer-city
borrower
customer
loan
(a)
social-security
&
customer-street
customer-name
amount
loan-number
customer-city
borrower
customer
loan
(b)
2.11
c
Silberschatz, Korth and Sudarshan
1997
'
&
2.12
c
Silberschatz, Korth and Sudarshan
1997
'
Many-To-Many Relationship
social-security
customer-street
customer-name
amount
loan-number
customer-city
borrower
customer
loan
&
2.13
c
Silberschatz, Korth and Sudarshan
1997
'
Existence Dependencies
loan
&
loan-payment
payment
2.14
c
Silberschatz, Korth and Sudarshan
1997
'
Keys
&
2.15
c
Silberschatz, Korth and Sudarshan
1997
'
&
2.16
c
Silberschatz, Korth and Sudarshan
1997
'
&
2.17
c
Silberschatz, Korth and Sudarshan
1997
'
&
amount
loan
payment-number
loan-payment
2.18
payment-amount
payment
c
Silberschatz, Korth and Sudarshan
1997
'
Specialization
&
2.19
c
Silberschatz, Korth and Sudarshan
1997
'
Specialization Example
balance
account-number
account
ISA
overdraft-amount
interest-rate
savings-account
&
checking-account
ISA
gold
standard
num-checks
interest-payment
2.20
senior
min-balance
date-of-birth
c
Silberschatz, Korth and Sudarshan
1997
'
Generalization
&
2.21
c
Silberschatz, Korth and Sudarshan
1997
'
&
total
partial
2.22
c
Silberschatz, Korth and Sudarshan
1997
'
Aggregation
customer-street
customer-name
loan-number
amount
customer-city
customer
borrower
loan
loan-officer
&
employee
e-social-security
telephone-number
employee-name
2.23
c
Silberschatz, Korth and Sudarshan
1997
'
Aggregation (Cont.)
&
2.24
c
Silberschatz, Korth and Sudarshan
1997
'
Aggregation Example
social-security
customer-street
customer-name
loan-number
amount
customer-city
customer
borrower
loan
loan-officer
&
employee
e-social-security
telephone-number
employee-name
2.25
c
Silberschatz, Korth and Sudarshan
1997
'
&
2.26
c
Silberschatz, Korth and Sudarshan
1997
'
branch-city
branch-name
assets
branch
loan-branch
social-security
payment-date
customer-street
payment-number
customer-name
payment-amount
loan-number
customer-city
customer
amount
borrower
loan
loan-payment
payment
access-date
balance
account-number
type
cust-banker
&
account
depositor
manager
employee
ISA
works-for
worker
e-social-security
dependent-name
employment-length
employee-name
savings-account
checking-account
telephone-number
interest-rate
start-date
2.27
overdraft-amount
c
Silberschatz, Korth and Sudarshan
1997
'
&
2.28
c
Silberschatz, Korth and Sudarshan
1997
'
social-security
321-12-3123
019-28-3746
677-89-9011
c-street
Main
North
Main
c-city
Harrison
Rye
Harrison
&
payment-number
5
11
22
payment-date
10 May 1996
17 May 1996
23 May 1996
payment-amount
50
75
300
c
Silberschatz, Korth and Sudarshan
1997
'
social-security
account-number
access-date
...
...
...
&
2.30
c
Silberschatz, Korth and Sudarshan
1997
'
table attributes
account
savings-account
account-number, interest-rate
checking-account
account-number, overdraft-amount
&
table
table attributes
savings-account
checking-account
2.31
c
Silberschatz, Korth and Sudarshan
1997
'
customer
customer-name
cust-social-security
customer-street
customer-city
loan
loan-number
amount
borrower
cust-social-security
loan-number
employee
&
emp-social-security
employee-name
phone-number
loan-officer
emp-social-security
cust-social-security
2.32
loan-number
c
Silberschatz, Korth and Sudarshan
1997