Question: Classes(class, type, country, numGuns, bore, displacement) Ships (name, class, launched) Battles (name, date) Outcomes (ship, battle, result) (a) Sample data for relation Classes (b) Sample

 Classes(class, type, country, numGuns, bore, displacement) Ships (name, class, launched) Battles(name, date) Outcomes (ship, battle, result) (a) Sample data for relation Classes(b) Sample data for relation Battles (c) Sample data for relation OutcomesFigure 2.23: Sample data for relation Ships These questions concern the ship

Classes(class, type, country, numGuns, bore, displacement) Ships (name, class, launched) Battles (name, date) Outcomes (ship, battle, result) (a) Sample data for relation Classes (b) Sample data for relation Battles (c) Sample data for relation Outcomes Figure 2.23: Sample data for relation Ships These questions concern the ship relations: a) Find the ship name and ship type ('bc' or 'bb') of each of the individual ships produced by Gt. Britain. You must use a join (i.e., cross product) followed by a WHERE. (NOTE: the type attribute is named "stype", which is slightly different from the book.) b) Find the ship name and ship type ('bc' or 'bb') of each of the individual ships produced by Gt. Britain. You must use a natural join. c) Find the displacement (weight) of the Musashi. You must use a join (i.e., cross product) followed by a WHERE. d) Find the displacement (weight) of the Musashi. You must use a subquery that returns a scalar

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!