Question
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
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 and 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.
(f) Find the battle in which the number of ships sunk is highest
SQL (30 pts): Write SQL statements for the following queries using the following database Classes (cclass, type, country, numguns, bore, displacement) Ships (sname, sclass, launched) Battles (sname, date) Outcomes (ship, battle, result)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