Question: Consider the following SQL Query: SELECT c . name, a . atype, b . b _ address FROM customer AS c , customer _ account
Consider the following SQL Query:
SELECT cname, aatype, bbaddress
FROM customer AS c customeraccount AS ca account AS a bankbranch AS b
WHERE cssn cacssn AND caano aanum AND abno bbnum
AND aatype'student' AND bbaddress 'Armidale';
a Construct an initial ie Canonical querytree representation of this query.
b Show how your canonical querytree from part a can be optimised using The Heuristic Algebraic Optimisation Algorithm. Make sure that you show your query tree after applying each step of the algorithm.
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
