Question: Section 2: This section covers query optimization (40 points) 1. Using the following schema: Suppliers(sid, sname, address) Parts(pid, pname, color) Catalog(pid, sid, cost, rating) consider

Section 2: This section covers query optimization (40 points) 1. Using the following schema: Suppliers(sid, sname, address) Parts(pid, pname, color) Catalog(pid, sid, cost, rating) consider the following query: SELECT s.sname, c.cost FROM suppliers s, parts p, catalog c WHERE p.pid c.pid AND c.sid s.sid AND s.snameOrion' AND p.colorblack' AND p.pid > 100; a) (10 pts) Draw a query tree using selection, projection and cross product (???). b) (10 pts) Draw a query tree that optimizes the SQL query using pushing selections
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
