Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SELECT , P _ CODE, P _ PRICE FROM PRODUCT WHERE P _ PRICE > = ( SELECT AVG ( P _ PRICE ) FROM

SELECT , P_CODE, P_PRICE
FROM PRODUCT
WHERE P_PRICE >=(SELECT AVG (P_PRICE) FROM PRODUCT) ;
What is the likely data sparsity of the P_PRICE column?
Should you create an index? Why or why not?
SELECT P_CODE, SUM(LINE_UNITS)
FROM LINE
GROUP BY P_CODE
HAVING SUM(LINE_UNITS)>(SELECT MAX (LINE_UNITS) FROM LINE);
What is the likely data sparsity of the LINE_UNITS column?
Should you create an index? If so, what would the index column(s) be and why
would you create that index?
Should you create an index on P-CODE? If so, write the SQL command to create
that index. If not, explain your reasoning.
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

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

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions

Question

what is a peer Group? Importance?

Answered: 1 week ago

Question

=+10. How are inflation and unemployment related in the short run?

Answered: 1 week ago

Question

=+8. Why is productivity important?

Answered: 1 week ago