Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write the answer by the keyboard d) Considering the following CREATE TABLE statement, why when the 'region' column is part of the primary key's underlying

write the answer by the keyboard
image text in transcribed
d) Considering the following CREATE TABLE statement, why when the 'region' column is part of the primary key's underlying clustered index, do the query optimizers resort to a table scan when a WHERE clause contains only conditions on the 'region' column? CREATE TABLE sales year SMALLINT NOT NULL, quarter' TINYINT NOT NULL, region VARCHAR(50) NOT NULL, vehicle VARCHAR(50) NOT NULL, quantity SMALLINT NULL, CONSTRAINT pri_sales PRIMARY KEY (year', quarter, region, vehicle)); [3] ] e) Continuing with the preceding scenario, suggest a new non-clustered index to stop the query optimizers having to resort to a table scan [3]

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 On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

relate the concept of training as an investment

Answered: 1 week ago

Question

Consider this article:...

Answered: 1 week ago

Question

LO10.3 Explain how demand is seen by a purely competitive seller.

Answered: 1 week ago