Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Complete the following exercises. I think the easiest way to do these is by hand and then scan them in, but you are velcome to
Complete the following exercises. I think the easiest way to do these is by hand and then scan them in, but you are velcome to use a graphic tool if that is easier for you. Please show your work. The global schema for use in this assignment. \begin{tabular}{|} \hline EMP (ENO, ENAME, TITLE) \\ ASG (ENO, PNO, RESP, DUR) \\ PROJ (PNO, PNAME, BUDGET) \\ \hline \end{tabular} Problem A. For the following SQL query on the example database, SELECT ENAME, PNAME FROM EMP, ASG, PROJ WHERE DUR >12 AND EMP.ENO = ASG. ENO AND PROJ.PNO = ASG.PNO Problem B. For the following SQL query, SELECT ENAME, PNAME FROM EMP, ASG, PROJ WHERE (DUR >12 OR RESP = "Analyst") AND EMP.ENO = ASG.ENO AND (TITLE = "Elect. Eng." OR ASG.PNO >12 OR RESP NOT= "Analyst") AND ASG.PNO = PROJ.PNO Simplify the query and transform it into an optimized operator tree using the restructuring algorithm (section 7.1.4 of the Query Decomposition reading), where the select and project operations are applied as soon as possible to reduce the size of intermediate relations. Transform the following query into a reduced query on fragments: SELECTENO,PNAMEFROMPROJ,ASGWHEREPROJ.PNO=ASG.PNOANDPNO="P4
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started