Question: - - - - Q 6 : Drop the clustered index on T 3 ( a , b ) . Create a clustered index on

---- Q6: Drop the clustered index on T3(a,b). Create a clustered index on T3(b,a). Why the column order in the index made a difference
--Show the new query plan and explain.
-- You may use the following commands to add a primary key to a table
alter table T3 drop constraint T3_PK
alter table T3 add CONSTRAINT T3_PK primary key (b,a)
-- Q7: for the query below, can you elaborate on the impact of the value of @param on the query plan
-- Please give different values to @param, show how the query plan may change in response to the value of @param
-- and explain why the query optimizer decided to choose each query plan
SELECT *
FROM T1 JOIN T2 on T1.a = T2.a JOIN T3 on T1.a = T3.b
Where T1.a>@param

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 Programming Questions!