Question

Create data tables within MySQL based on this diagram. Use all the entities and relationships described in that question. Choose Primary keys and foreign keys minutely. There should be a table called ocean, strait, continent, and island then followed by 3 relationship tables: connected_to, separated_by, and located_in. A total of 7. Add a couple values tooname area name area bodies of water land mass connected isa isa many to many continent island ocean strait separated many to

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

OCEAN TABLE :

CREATE TABLE IF NOT EXISTS OCEAN (

name varchar(100),

area varchar(100),

isa varchar(100),

located varchar(100),

Primary Key (isa)

)

STRAIT TABLE :

CREATE TABLE IF NOT EXISTS STRAIT (

name varchar(100),

area varchar(100),

isa varchar(100),

located varchar(100),

separated varchar(100),

Foriegn Key (isa) References OCEAN(isa)

)

CONTINENT TABLE :

CREATE TABLE IF NOT EXISTS CONTINENT (

name varchar(100),

area varchar(100),

isa varchar(100),

located varchar(100),

separated varchar(100),

Primary Key (isa)

)

ISLAND TABLE :

CREATE TABLE IF NOT EXISTS ISLAND (

name varchar(100),

area varchar(100),

isa varchar(100),

located varchar(100),

separated varchar(100),

Foriegn Key (isa) References CONTINENT (isa)

)

Add a comment
Know the answer?
Add Answer to:
Create data tables within MySQL based on this diagram. Use all the entities and relationships described...
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
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
Active Questions
ADVERTISEMENT