Question: Consider the following relational schema and SQL query: (A) Trace the System R dynamic programming algorithm on this query. (B) Give a relational algebra tree

Consider the following relational schema and SQL query:

Consider the following relational schema and SQL query: (A) Trace the System

(A) Trace the System R dynamic programming algorithm on this query.

(B) Give a relational algebra tree that is reasonably efficient (Hint: think of algebraic equivalences)

Consider the following relational schema and SQL query: Employee(eid: integer, did: integer, sal: real, hobby: char(20)) Department(did: integer, dname : char(20), floor: integer, phone: char(10)) Finance(did: integer, budget: real, sales: real, expenses: real) SELECT D.dname, F.budget FROM Employee E, Department D, Finance F WHERE E.did-D.did AND D.did-F.did AND D.floor 1 AND E.sal >= 59000 AND E.hobby = 'golf' Suppose we have the following indexes: Bt indexes exist on the attributes Employee.did, Employee.sal, Dept.floor, Department.did, and Finance.did. The DBMS has only the index nested loops and sort-merge as join algorithms Consider the following relational schema and SQL query: Employee(eid: integer, did: integer, sal: real, hobby: char(20)) Department(did: integer, dname : char(20), floor: integer, phone: char(10)) Finance(did: integer, budget: real, sales: real, expenses: real) SELECT D.dname, F.budget FROM Employee E, Department D, Finance F WHERE E.did-D.did AND D.did-F.did AND D.floor 1 AND E.sal >= 59000 AND E.hobby = 'golf' Suppose we have the following indexes: Bt indexes exist on the attributes Employee.did, Employee.sal, Dept.floor, Department.did, and Finance.did. The DBMS has only the index nested loops and sort-merge as join algorithms

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!