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
STUDENTsid fullName, DoB, email
STUDIESONstid ctid
COLLEGEcid cName
SQL Query
SELECT fullName
FROM STUDENT,
SUTDIESON
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
