Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve it correctly with drawings! Database optimizatio Consider a database with three relations: R ( A , B , D , E ) ; S

solve it correctly with drawings!
Database optimizatio Consider a database with three relations: R(A,B,D,E);S(C,A,F,G);P(B,C,H,I)
Assume the following schemas and statistics for the relations.
T(P)=10000V(P,C)=100V(P,B)=150=S.A===16>400=17R(A,B,D,E),S(C,A,F,G),P(B,C,H,I)
-V(R,B)=200
-V(R,D)=100
-10
T(P)=10000
V(P,C)=100
V(P,B)=150
Consider the following query:
SELECT R.D,S.F
FROM R,S,P
WHERE R.A=S.A and R.B=P.B AND P.C=S.C
AND R.D=16 AND R.E>400 AND S.F=17
Draw the initial tree for this query, and then show how the query tree is optimized by
the heuristic rules.
Give the estimation cardinality of each step in your plan.n Exercise 1:
image text in transcribed

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

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

How would you train others to perform the task? Explain.

Answered: 1 week ago

Question

Why is it important for a firm to conduct career development?

Answered: 1 week ago