Professional Documents
Culture Documents
Chapter 3
Chapter 3
car1
((ABC 123, TEXAS), TK629, Ford Mustang, convertible, 1999, (red, black))
car2
((ABC 123, NEW YORK), WP9872, Nissan 300ZX, 2-door, 2002, (blue))
car3
((VSY 720, TEXAS), TD729, Buick LeSabre, 4-door, 2003, (white, blue))
.
.
.
ENTITY TYPE
RELATIONSHIP TYPE
ATTRIBUTE
KEY ATTRIBUTE
MULTIVALUED ATTRIBUTE
COMPOSITE ATTRIBUTE
DERIVED ATTRIBUTE
E1 R E2 TOTAL PARTICIPATION OF E2 IN R
r5 O d3
e5 O
e6 O r6
e7 O r7
r9 r
1
e1 O O p1
r2
e2 O
r3
e3 O O p2
r4
e4 O
e5 r5 O p3
O
e6 O r6
e7 O r7
r8
r5 O d3
e5 O
e6 O r6
e7 O r7
r9 r
1
e1 O O p1
r2
e2 O
r3
e3 O O p2
r4
e4 O
e5 r5 O p3
O
e6 O r6
e7 O r7
r8
e1 r1
O 2
e2 1
O r2
2
e3 O
1
2 r3
e4 O 1
e5 O
2 r4
1
e6 1
O r5
2
e7 1
O
2 r6
© The Benjamin/Cummings Publishing Company, Inc. 1994, Elmasri/Navathe, Fundamentals of Database Systems, Second Edition
Examples:
O A department has exactly one manager and an employee can manage at most
one department.
– Specify (0,1) for participation of EMPLOYEE in MANAGES
O An employee can work for exactly one department but a department can have
any number of employees.
– Specify (1,1) for participation of EMPLOYEE in WORKS_FOR
(0,1) (1,1)
(1,1) (1,N)
© The Benjamin/Cummings Publishing Company, Inc. 1994, Elmasri/Navathe, Fundamentals of Database Systems, Second Edition