Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 1 ) . Enter the following query in the query window ( do not execute it ) : select * from table _ A

(1). Enter the following query in the query window (do not execute it):
select *
from table_A
where b?b=ar(5000);
At the top of the query window, there is a horizontal bar with various icons, a part of which is
shown below:
Click the icon highlighted in green (see above). This icon is usually referred to as "EXPLAIN
plan icon or "EXPLAIN icon." Capture the screenshot of the visual execution plan and record the
query cost, which is shown on top of the execution plan.
(2). Create an index on the column ,b of table_A with the following sql statement:
create unique index table_A_b_ix on table_A(b);
Enter the same query again and the click the EXPLAIN plan icon again. Capture the screenshot
of the visual execution plan and record the query cost, which is shown on top of the execution
plan.
(3). Compare the query cost from (1) and the query cost from (2). What conclusion can you
draw?
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions

Question

=+free to pirate employees from competitors?

Answered: 1 week ago