Question: Exercise 2 . 4 . 3 : This exercise builds upon Exercise 2 . 3 . 2 concerning World War II capital ships. Recall it
Exercise : This exercise builds upon Exercise concerning World
War II capital ships. Recall it involves the following relations:
Classes class type, country, numGuns, bore, displacement
Ships name class, launched
Battles name date
Outcomes ship battle, result
Figures and give some sample data for these four relations. Note
that, unlike the data for Exercise there are some "dangling tuples" in this
data, eg ships mentioned in Outcomes that are not mentioned in Ships.
Write expressions of relational algebra to answer the following queries. You
may use the linear notation of Section if you wish. For the data of Figs.
and show the result of your query. However, your answer should work
for arbitrary data, not just the data of these figures.
a Give the class names and countries of the classes that carried guns of at
least inch bore.
b Find the ships launched prior to
c Find the ships sunk in the battle of the Denmark Strait.
d The treaty of Washington in prohibited capital ships heavier than
tons. List the ships that violated the treaty of Washington.
e List the name, displacement, and number of guns of the ships engaged in
the battle of Guadalcanal.
f List all the capital ships mentioned in the database. Remember that all
these ships may not appear in the Ships relation.
use expression trees to solve f
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
