28
Translating from ER to Relationship Schema Adapted from Juliana Freire

Translating from ER to Relationship Schema

  • Upload
    callum

  • View
    26

  • Download
    3

Embed Size (px)

DESCRIPTION

Translating from ER to Relationship Schema. Adapted from Juliana Freire. The easy part. Entity  relation with attributes underlined field is key Relationship -> relation? special situations – Multi-valued and composite attributes – Weak entity sets – ISA relationships - PowerPoint PPT Presentation

Citation preview

Page 1: Translating from ER to Relationship Schema

Translating from ER to Relationship Schema

Adapted from Juliana Freire

Page 2: Translating from ER to Relationship Schema

The easy partEntity relation with attributes

underlined field is keyRelationship -> relation?

special situations– Multi-valued and composite attributes– Weak entity sets– ISA relationships– Relations that result from an entity set and 1tomanyrelationship

Page 3: Translating from ER to Relationship Schema
Page 4: Translating from ER to Relationship Schema
Page 5: Translating from ER to Relationship Schema
Page 6: Translating from ER to Relationship Schema

Translating Many-to-Many

Page 7: Translating from ER to Relationship Schema
Page 8: Translating from ER to Relationship Schema

One to Many

Page 9: Translating from ER to Relationship Schema

One to Many answer

Page 10: Translating from ER to Relationship Schema

One – to- Many

Page 11: Translating from ER to Relationship Schema

One to Many with total participation

Page 12: Translating from ER to Relationship Schema

Why not a new relation?

Page 13: Translating from ER to Relationship Schema

Mapping many to many attribute

Page 14: Translating from ER to Relationship Schema

Throw the attributes onto the relationship table

Page 15: Translating from ER to Relationship Schema

1-to-many relationship with an attribute?

Page 16: Translating from ER to Relationship Schema

Add it to the 1 side

Page 17: Translating from ER to Relationship Schema

Translating Weak Entity Sets

Page 18: Translating from ER to Relationship Schema

Translating ISA relationship – as a tier

Page 19: Translating from ER to Relationship Schema

Translating ISA – one with all

Page 20: Translating from ER to Relationship Schema

Which one?

Page 21: Translating from ER to Relationship Schema

Participation Constraints

Page 22: Translating from ER to Relationship Schema

Splitting tables is always an option

Page 23: Translating from ER to Relationship Schema

Sample ERD

Page 24: Translating from ER to Relationship Schema

Equivalent Relational Schema

Page 25: Translating from ER to Relationship Schema

Translate This

Page 26: Translating from ER to Relationship Schema

Translation steps

Page 27: Translating from ER to Relationship Schema
Page 28: Translating from ER to Relationship Schema