+ All Categories
Home > Documents > Translating from ER to Relationship Schema Adapted from Juliana Freire.

Translating from ER to Relationship Schema Adapted from Juliana Freire.

Date post: 19-Dec-2015
Category:
View: 217 times
Download: 2 times
Share this document with a friend
Popular Tags:
28
Translating from ER to Relationship Schema Adapted from Juliana Freire
Transcript
Page 1: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Translating from ER to Relationship Schema

Adapted from Juliana Freire

Page 2: Translating from ER to Relationship Schema Adapted from Juliana Freire.

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 Adapted from Juliana Freire.
Page 4: Translating from ER to Relationship Schema Adapted from Juliana Freire.
Page 5: Translating from ER to Relationship Schema Adapted from Juliana Freire.
Page 6: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Translating Many-to-Many

Page 7: Translating from ER to Relationship Schema Adapted from Juliana Freire.
Page 8: Translating from ER to Relationship Schema Adapted from Juliana Freire.

One to Many

Page 9: Translating from ER to Relationship Schema Adapted from Juliana Freire.

One to Many answer

Page 10: Translating from ER to Relationship Schema Adapted from Juliana Freire.

One – to- Many

Page 11: Translating from ER to Relationship Schema Adapted from Juliana Freire.

One to Many with total participation

Page 12: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Why not a new relation?

Page 13: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Mapping many to many attribute

Page 14: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Throw the attributes onto the relationship table

Page 15: Translating from ER to Relationship Schema Adapted from Juliana Freire.

1-to-many relationship with an attribute?

Page 16: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Add it to the 1 side

Page 17: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Translating Weak Entity Sets

Page 18: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Translating ISA relationship – as a tier

Page 19: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Translating ISA – one with all

Page 20: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Which one?

Page 21: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Participation Constraints

Page 22: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Splitting tables is always an option

Page 23: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Sample ERD

Page 24: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Equivalent Relational Schema

Page 25: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Translate This

Page 26: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Translation steps

Page 27: Translating from ER to Relationship Schema Adapted from Juliana Freire.
Page 28: Translating from ER to Relationship Schema Adapted from Juliana Freire.

Recommended