Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
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