Question: Part 2 Problem 1 ( 1 0 Points ) : Draw the relational algebra tree for the following query: S i d , C i

Part 2
Problem 1(10 Points):
Draw the relational algebra tree for the following query:
Sid,Cid(((Sid,Sname,Major(Gpa>3.4( Student )))|>| Enroll )|>|(Cid,Ctitle,Instructor(Credits=3( Course ))))
Problem 2(10 Points):
Show how to derive the following equivalence by a sequence of transformations using the equivalence rules. Your
solution must include the step-by-step procedure with the rule specified in each step.
1??2(E1>|3E2)=1(E1|>?3(2(E2))), where 2 involves only attributes of E2
Problem 3(30 Points):
Consider a relation Student(Sid, Sname, Major, Status, Gpa) with 20,000 tuples. Assume there are 100 different
values of Major, 5 different values of Status, and Gpa values are between 0.00 and 4.00(Gpa is calculated with 2
decimal positions). Show your steps to estimate the number of tuples selected in each of the following queries. No
point is given if only the answer is provided.
(a) Student
Part 2 Problem 1 ( 1 0 Points ) : Draw the

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 Programming Questions!