Answered step by step
Verified Expert Solution
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
- Identify all entities: (E.g.EntityX)
- Identify special attributes:
- Composite attributes: (E.g. AttributeX(subattributeX1, subattributeX2, ), AttributeY(, ) )
- Derived attributes:
- 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:
- 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:
- Update relational schemas translation (add extra relation or attribute) with foreign key, according to special attributes:
- Multi-valued attributes:
- Repeat above steps if necessary.
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started