Question: Need Relational algebra for below schema Relational Schema: Classes(class, type, country, numGuns, bore, displacement) Ships(name, class, launched) Battles(name, date) Outcomes(ship, battle, result) a) List the

Need Relational algebra for below schema

Relational Schema:

Classes(class, type, country, numGuns, bore, displacement)

Ships(name, class, launched)

Battles(name, date)

Outcomes(ship, battle, result)

a) List the name, displacement, and number of guns of the ships engaged in the battle of Guadalcanal.

b) List all the ships mentioned in the database. (Remember that all these ships may not appear in the Ships relation.)

d) Find those countries that have both battleships (bb) and battlecruisers (bc).

e)Find those ships that "lived to fight another day"; they were damaged in one battle and later fought in another. (hint: join outcomes with battles, for the date, and then work with that intermediate result)

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!