Question: Given that the following schema and SQL query: Schema STUDENT ( sid , fullName, DoB, email ) STUDIES _ ON ( stid , ctid )

Given that the following schema and SQL query:
Schema
STUDENT(sid , fullName, DoB, email)
STUDIES_ON(stid, ctid)
COLLEGE(cid, cName)
SQL Query
SELECT fullName
FROM STUDENT,
SUTDIES_ON,
COLLEGE
WHERE sid = stid
AND ctid = cid
AND cName = 'CCI';
a) Convert the query above into Relational Algebra expression.
b) Draw the initial query tree of the query.
c) Write the rule and show how the query tree is optimized after applying Heuristic Rules Optimization in each step.

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!