Presentation is loading. Please wait.

Presentation is loading. Please wait.

Assignment 4 Map entities with relationships to relational schemas.

Similar presentations


Presentation on theme: "Assignment 4 Map entities with relationships to relational schemas."— Presentation transcript:

1 Assignment 4 Map entities with relationships to relational schemas.
Use DBDL to describe the table schemas.

2 E-R Model E1 att1 att2: composite (att21, att22, att23) att3: multi-value composite (att31, att32, att33) Primary Key: att1 DBDL E1 (att1, att21, att22, att23) PK: att1 AK: NONE FK: NONE NewEntity (NewAtt, att1, att31, att32, att33) PK: NewAtt AK: None FK: att1 References E1

3 E-R Model E E3 A B1: composite (B11, B12, B13) A B2 Primary Key: A Primary Key: B1 E2 (0..*) R (1..*) E3 Attribute: D1, D2 DBDL E2 (A1, A2) PK: A1 AK: NONE FK: NONE E3 (B11, B12, B13, B2) PK: B11, B12, B13 AK: NONE FK: NONE R1(C, A1, B11, B12, B13, D1, D2) PK: C (new attribute as PK) AK: NONE FK: A1 References E2 B11, B12, B13 References E3

4 E-R Model E E5 A3: composite (A31, A32) B3 A B4: multi-value Primary Key: A B5 Primary Key: B3 E4 (0..*) R (0..1) E5 DBDL E4 (A31, A32, A4, B3) PK: A4 AK: NONE FK: B3 References E5 E6 (B3, B4, ID) PK: ID E5 (B3, B5) PK: B3 AK: NONE FK: NONE


Download ppt "Assignment 4 Map entities with relationships to relational schemas."

Similar presentations


Ads by Google