Question: Can you help me to do it in mysql workbench, XMAPP 4. Exercise 6.4.7: Write the following queries, based on the database schema ) Classes

Can you help me to do it in mysql workbench, XMAPP

4. Exercise 6.4.7: Write the following queries, based on the database schema
) Classes (class, type, country, numGuns, bore, displacement Ships (name, class, launched)
Battles (name, date) Outcomes (ship, battle, result ) of Exercise 2.4.3. and   

4. Exercise 6.4.7: Write the following queries, based on the database schema ) Classes (class, type, country, numGuns, bore, displacement Ships (name, class, launched) Battles (name, date) Outcomes (ship, battle, result ) of Exercise 2.4.3. and evaluate your queries using the data of that exercise. a) Find the number of battleship classes. b) Find the average number of guns of battleship classes. c) Find the average number of guns of battleships. Note the difference between b) and c); do we weight a class by the number of ships of that class or not? d) Find for each class the year in which the rst ship of that class was launched. e) Find for each class the number of ships of that class sunk in battle.

Step by Step Solution

3.45 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Query Evaluation Task a Find the number of battleship classes Battleships have a type bb sql SELECT COUNT FROM Classes WHERE type bb Expected Result T... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!