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 c.name, a.atype, b.b_address
FROM customer AS c, customer_account AS ca, account AS a, bank_branch AS b
WHERE c.ssn = ca.cssn AND ca.ano = a.anum AND a.bno = b.bnum
AND a.atype='student' AND b.b_address= 'Armidale';
a) Construct an initial (i.e. Canonical) query-tree representation of this query.
b) Show how your canonical query-tree 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.
i would appreciate an explanation for the both questions

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!