Find the classes of ships, one of which was sunk in a battle


Assignment: Enterprise Database Management

Consider the same database schema of Assignment #1, which is concerned with World War II capital ships. For your convenience, Assignment 1 Specifications are reproduced here again.

The DB Schema 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 'be' 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 queries and apply them to the above database:

a) Find those countries that have both battleships and battlecruisers.
b) Find those ships that were damaged in one battle, but later fought in another.
c) Find the classes of ships, at least one of which was sunk in a battle.
d) Find the names of the ships whose number of guns was the largest for those ships of the same bore.
e) Find for each class the year in which the first ship of that class was launched.

Format your assignment according to the following formatting requirements:

1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also include a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

3. Also Include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.

Attachment:- Assignment-Enterprise-Database-Management.rar

Solution Preview :

Prepared by a verified Expert
Database Management System: Find the classes of ships, one of which was sunk in a battle
Reference No:- TGS02974143

Now Priced at $45 (50% Discount)

Recommended (91%)

Rated (4.3/5)