Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

The company openly shares plans and information with employees.

Answered: 1 week ago