Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

7. Identify six intercultural communication dialectics.

Answered: 1 week ago