Question
Suggest suitable keys for the relations of the battleships database Classes(class, type, country, numGuns, bore, displacement) Ships(name, class , launched) Battles(name, date) Outcomes(ship, battle ,
Suggest suitable keys for the relations of the battleships database Classes(class, type, country, numGuns, bore, displacement) Ships(name, class , launched) Battles(name, date) Outcomes(ship, battle , result)
================
Write the following referential integrity constraints for the battleships database as in Exercise 7.1.4.( see above) Use your assumptions about keys from that exercise, and handle all violations by setting the referencing attribute value to NULL. a) Every class mentioned in Ships must be mentioned in Classes. b) Every battle mentioned in Outcomes must be mentioned in Battles. c) Every ship mentioned in Outcomes must be mentioned in Ships.
Textbook: Database Systems: The Complete Book 2nd edition, by Hector Garcia-Molina, Jeff Ullman and Jennifer Widom, Prentice Hall, 2008. ISBN: 978-0131873254
http://people.inf.elte.hu/sila/DB1Lect/Ullman_The_Complete_Book.pdf Page 319
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