Question: Write an SQL query that has a group - by and a join operators. Capture two query plans for the same query. One query plan
Write an SQL query that has a groupby and a join operators. Capture two query plans for the same query. One query plan where the join is performed before the groupby and the other query plan has the groupby performed before the join. To make the query optimizer change its decision, you can alter the schema of the tables eg createdrop indexes andor insertdelete rows intofrom the tables. Please submit the SQL query, and all SQL statements that createalter the schema of tables andor insertdelete rows. Please submit the screenshots of the two query plans.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
