Question: In SQL Developer Lab 7 Designing Indexes Objectives Compare different queries using EXPLAIN PLAN 1.. Find all indexes on SH.CUSTOMERS table. You might need to

In SQL Developer

Lab 7 Designing Indexes Objectives

Compare different queries using EXPLAIN PLAN

1.. Find all indexes on SH.CUSTOMERS table. You might need to use several data dictionary views to find all information required. Provide code of all queries and screenshots of the results. Index name Column Name Index Type

2. Find how many rows in SH.CUSTOMERS table have information about customers whose last name contains "ltz". What query did you use? Provide code of the query and screenshot of the results.

3. Find an execution plan for the previous query. Pin the execution plan. Provide a screenshot and an explanation of the observed results.

4. Add index to SH.CUSTOMERS table. The index should combine customers' first name and last name. What query did you use? Provide code of the query and screenshot of the results.

5. Find how many rows in SH.CUSTOMERS table have information about customers whose last name contains "ltz". What query did you use? Provide code of the query and screenshot of the results.

6. Find an execution plan for the previous query. Provide a screenshot and an explanation of the observed results.

7. Compare execution plans for both queries (before and after the index). Provide a screenshot and an explanation of observed results.

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