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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started