Question: Consider the following SQL Query: SELECT FNAME, DNAME FROM EMP ASN E, DEPT AS D WHERE E.DNO = D.DNUMBER AND D.DNAME =CCI AND SALARY >

Consider the following SQL Query:

SELECT FNAME, DNAME

FROM EMP ASN E, DEPT AS D

WHERE E.DNO = D.DNUMBER AND D.DNAME =’CCI’ AND SALARY > 15000;

Draw the initial query tree for the above SQL query, and then show how the query tree is optimized by applying the Heuristic Rules. 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Initial Query Tree CCI 15000 SELECT LFNAME DNAME FROM HEMP E DEPT D WHERE LFNAME DNAME FROM LEDN... View full answer

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!