Question: Please read the direction Database- Express the following constraints in relational algebra. These are based on the given ship data (attached below). Classes(class, type, country,

Please read the direction

Please read the direction Database- Express the following constraints in relational algebra.

These are based on the given ship data (attached below). Classes(class, type,

country, numGuns, bore, displacement) Ships (name, class, Battles (name, date) Outcomes(ship, battle,

Database- Express the following constraints in relational algebra. These are based on the given ship data (attached below). Classes(class, type, country, numGuns, bore, displacement) Ships (name, class, Battles (name, date) Outcomes(ship, battle, result You can express these as either containments or or by equating an expression to the empty set. Containment example: movieTitle,movieYear( StarsIn )title,year( Movies ) Equating to empty set example: Use the following alternative syntax when you write the algebra. a. No class of ships may have guns larger than 16 -inch bore. b. If a class ship has more than 9 guns, then their bore must be no larger than 14 inches. c. No class may have more than two ships. d. No country may have both battleships and battlecruisers. (a) Sample data for relation Classes (b) Sample data for relation Battles (c) Sample data for relation Outcomes Figure 2.22: Data for Exercise 2.4.3 (c) Sample data for relation Outcomes Figure 2.22: Data for Exercise 2.4.3 Figure 2.23: Sample data for relation Ships

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!