Question: Exercise 2.3.2: This exercise introduces another running example , concerning World War II capital ships . It involves the following relations : Classes ( class
Exercise 2.3.2: This exercise introduces another running example , concerning World War II capital ships . It involves the following relations :
Classes ( class , type , country , numGuns , bore , displacement )
Ships ( name , class , launched )
Battles ( name , date )
Outcomes ( ship , battle , result )
Ships are built in classes from the same design, and the class is usually named for the first ship of that class. The relation Classes records the name of the class , the type (' bb ' for battleship or ' bc ' for battlecruiser), the country that built the ship , the number of main guns , the bore ( diameter of the gun barrel , in inches ) of the main guns , and the displacement ( weight , in tons ). Relation Ships records the name of the ship, the name of its class, and the year in which the ship was launched. Relation Battles gives the name and date of battles involving these ships, and relation Outcomes gives the result ( sunk , damaged , or ok ) for each ship in each battle.
Write the following declarations:
b) A suitable schema for relation Ships.
c) A suitable schema for relation Battles.
d) A suitable schema for relation Outcomes.
e) An alteration to your Classes relation from a) to delete the attribute bore.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
