Question: Login as system. Switch to SAMPLESCDB container (see troubleshooting tips linked under help section on d2l) Study the structure of OE.CUSTOMERS table. This table is
-
Login as system. Switch to SAMPLESCDB container (see troubleshooting tips linked under help section on d2l)
-
Study the structure of OE.CUSTOMERS table. This table is part of the same sample schema as OE.CUSTOMERS
What query did you use? Provide code of the query and screenshot of the results.
-
Find all indexes on OE.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 |
|
|
|
|
|
|
|
|
-
Find how many rows in OE.CUSTOMERS table have information about customers whose last name contains "der".
What query did you use? Provide code of the query and screenshot of the results.
-
Find an execution plan for the previous query. Pin the execution plan.
Provide a screenshot and an explanation of the observed results.
-
Add index to OE.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.
-
Find how many rows in OE.CUSTOMERS table have information about customers whose last name contains "der".
What query did you use? Provide code of the query and screenshot of the results.
-
Find an execution plan for the previous query.
Provide a screenshot and an explanation of the observed results.
-
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
Get step-by-step solutions from verified subject matter experts
