Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

1. Ask students to put their names on the backs of their papers.

Answered: 1 week ago