Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Identify all entities : (E.g.EntityX) Identify special attributes : Composite attributes: (E.g. AttributeX(subattributeX1, subattributeX2, ), AttributeY(, ) ) Derived attributes: Initial translation to relational schemas

image text in transcribed

  1. Identify all entities: (E.g.EntityX)
  2. Identify special attributes:
    1. Composite attributes: (E.g. AttributeX(subattributeX1, subattributeX2, ), AttributeY(, ) )
    2. Derived attributes:

  1. Initial translation to relational schemas for all identified entities:

TIPS: Remember to indicate PK in correct way.

4. Identify cardinality ratios of all relationships:

  • Many-to-Many: (EntityX : EntityY)
  • One-to-Many:
  • One-to-One:
  1. Update relational schemas translation (add extra relation or attribute) with foreign key, according to cardinality:

First write the schema for EntityX, then in a new line indicate its FK references the PK of an existed Entity Y:

E.g. EntityX (, AttributeX)

Foreign key AttributeX references EntityY (PK_Y)

  • Many-to-many relationships:
  • One-to-many relationships:
  • One-to-one relationship:

  1. Update relational schemas translation (add extra relation or attribute) with foreign key, according to special attributes:

  • Multi-valued attributes:

  1. Repeat above steps if necessary.

  1. List final relational schema (after finish Updating according to all situations):

Video videoNo {PK} title category| dailyRental cost actor (1..*] director 1..1 Has 1..1 Has 1.. 0.* VideoCopy copyNo {PK} status 1..* Own 1..1 Branch branchNo {PK} address street city state zip phoneNum Staff staffNo {PK} name position salary 1..1 1..1 1..5 Manage 1..1 Include Register Registration registrationDate 0.2 0..* VideoRental rentalNo {PK} dateOut dateReturned /totalRental 0..* Request Member memberNo {PK} name 1..1 address street city state zip

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions