Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedimage text in transcribed

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

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

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions