SQL Assignment The shema of these relations is: .CLASSESclass, type, country, nu
ID: 3872910 • Letter: S
Question
SQL Assignment
The shema of these relations is: .CLASSESclass, 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 irst ship of that class. The relation Classes records the name of the class, the typerbo for battleship or 'bc' for battlecruiser), the country that build the ship, the number of main guns, the bore (diameter of the gun), 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 battleExplanation / Answer
select avg(bore) from classes where type='bb';
select avg(bore),numguns from classes where type='bb';
select name,count(ships) from battles;
select count(battle) from outcomes;
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.