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)); e) Continuing with the preceding scenario, suggest a new non-clustered index to

Database Systems: Design, Implementation, & Management
11th Edition
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Chapter11: Database Performance Tuning And Query Optimization
Section: Chapter Questions
Problem 32P: Problems 2932 are based on the following query: SELECT CUS_CODE, MAX(LINE_UNITSLINE_PRICE) FROM...
icon
Related questions
icon
Concept explainers
Question
write it by the keyboard
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));
e) Continuing with the preceding scenario, suggest a new non-clustered index to
stop the query optimizers having to resort to a table scan
Transcribed Image Text:write it by the keyboard 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)); e) Continuing with the preceding scenario, suggest a new non-clustered index to stop the query optimizers having to resort to a table scan
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning