Question

7.3.3 Exercises for Section 7.3 Exercise 7.3.1: Show how to alter your relation schemas for the movie exam- ple: Movie(title,

Exercise 7.3.1: Show how to alter your relation schemas for the movie example: M o v ie (title , y ear, le n g th , genre, studioName, producerC#) S ta rsln (m o v ieT itle , movieYear, starName) MovieStar(name, ad d ress, gender, b irth d a te ) MovieExec(name, ad d ress, c e rt# , netWorth) Studio(nam e, ad d ress, presC#) in the following ways. a) Make t i t l e and year the key for Movie

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

The query to make title and year the key for Movie:

ALTER TABLE Movie

ADD CONSTRAINT MovieKey

PRIMARY KEY (title, year);

Add a comment
Know the answer?
Add Answer to:
Exercise 7.3.1: Show how to alter your relation schemas for the movie example: M o v...
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
ADVERTISEMENT