Question

was born in has Country (.Code) CountryName has Acting ! Movie Title Actor (.Name) Movie D acted in Year (CE) was released

how can I convert the diagram into relation database schema?

I wonder how to connect between each schema, and I want to make relation schema of nested and external constraints which is not sure.

I think the table is country, actor, acting(nested), movie, aussieactor. Am I right?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Yes you are right about the entities present in the above diagram.

(i) To convert into relational schema first you have to map entities and they are country, actor, movie, aussieactor. For acting it can be identified as a relationship which hav attributes .

(ii) Next we have to identify the attributes of each entity. For example movie entity have the attributes- Movie_title, year, rating.

(iii) The relationships with attributes will be mapped. For example here the relationship is acting.

(iv) Next task is to map the weak entity, but here is no such entity.

1. Country:

Country(Country_code, Country_name)

2. Movie:

Movie(Movie_id, Movie_name, Release_year, Movie_Rating, Acting_id)

3.Actor:

Actor(Actor_id, Actor_name, Acting_id, Country_code)

4.AussieActor:

AussieActor(Actor_id, Actor_name, Born_date, No_of_awards, Acting_id)

5. Acting:

Acting(Acting_id, Movie_id, Actor_id)

As there are very limited information, we have to add primary keys in the entities uniquely. For example Movie_id is added in the Movie entity to uniquely identify a particular row. The relationship acting stores the information of actors and movies. Instead of storing all the records it just simply stores the primary key of the belonging entitties which are Actor_id and Movie_id respectively. Another entity AussieActor are the actors who were born in the Country AU, so there is no need to provide the country_id field in the entity.

Add a comment
Know the answer?
Add Answer to:
how can I convert the diagram into relation database schema? I wonder how to connect between...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • May I ask the SQL code as follows? The relational database moviedb has the following database...

    May I ask the SQL code as follows? The relational database moviedb has the following database schema: Movie(title, production year, country, run time, major genre) primary key : {title, production year} Person(id, first name, last name, year born) primary key : {id} Award(award name, institution, country) primary key : {award name} Restriction Category(description, country) primary key : {description, country} Director(id, title, production year) primary key : {title, production year} foreign keys : [title, production year] ⊆ Movie[title, production year] [id]...

  • Overview This lab provides you the opportunity to insert and update data with the use of SQL comm...

    Overview This lab provides you the opportunity to insert and update data with the use of SQL commands. The lab will utilize the FLIX2YOU problem, the current schema. In order to start this lab, you must have successfully completed Lab # 6. In Lab # 6, you executed a script that was provided to you. This script created 7 of the FLIX2YOU tables as documented in the Entity Relationship Diagram in the FLIX2YOU problem document. The second part of lab...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT