Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just Need the SQL Statements: Login as system. Switch to orlcpdb container Study the structure of SH.CUSTOMERS table. This table is part of the same

Just Need the SQL Statements:

Login as system. Switch to orlcpdb container

Study the structure of SH.CUSTOMERS table. This table is part of the same sample schema as OE.CUSTOMERS

What query did you use? Provide code of the query.

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

Index name

Column Name

Index Type

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

Find an execution plan for the previous query. Pin the execution plan.

Provide an explanation of the observed results.

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

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

Find an execution plan for the previous query.

Provide an explanation of the observed results.

Compare execution plans for both queries (before and after the index).

Provide an explanation of observed results.

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

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

Determine the angle ? between cables AB and AC. 8 ft 12 ft 8 ft

Answered: 1 week ago

Question

What is the difference between a system and a subsystem?

Answered: 1 week ago

Question

=+4. What is used to navigate between activities?

Answered: 1 week ago