Professional Documents
Culture Documents
DSE 310 - Practice 3
DSE 310 - Practice 3
DSE 310
Practice-3
Let E1 and E2 be two entities in an E/R diagram with simple single-valued attributes. R1
and R2 are two relationships between E1 and E2, where R1 is one-to-many and R2 is
many-to-many. R1 and R2 do not have any attributes of their own. What is the minimum
number of tables required to represent this situation in the relational model?
Strong entities E1 and E2 are represented as separate tables.
Foreign Key
5 2
(c) (5,2), (7,2) and (9,5)
7 2
9 5
(d) (3,4), (4,3) and (6,4)
6 4
A C (FK)
2 4
3 4
4 3
5 2
7 2
9 5
6 4
Q. Construct appropriate tables for following E-R diagrams?
Car insurance tables:
person (driver-id, name, address)
car (license, year, model)
accident (report-number, date, location)
participated(driver-id, license, report-number,
damage-amount)
owns(driver-id, license)
Thetha Join/Conditional Join
S1.sid name rating age R1.sid bid day
22 dustin 7 45.0 58 103 11/12/96
31 lubber 8 55.0 58 103 11/12/96
S1.id<R1.sid
S1.sid name rating age R1.sid bid day