Question: SELECT , P _ CODE, P _ PRICESELECT , P _ CODE, P _ ? - Q O H * * P - PRICE FROM

SELECT , P_CODE, P_PRICESELECT , P_CODE, P_?-QOH**P-PRICE
FROM PRODUCT
WHERE , P_QOH**P?PRICE >(SELECT AVG PRICE) FROM
PRODUCT)
What is the likely data sparsity of the P-QOH and P-PRICE columns?
Should you create an index, what would the index column(s) be, and why should you
create that index?
SELECT P_CODE, P_DESCRIPT, P_QOH, P_PRICE, V_CODE
FROM PRODUCT
WHERE , V_CODE ='21344'
ORDER BY P_CODE;
12.What index would you recommend, and what command would you use?
SELECT CUS_CODE, MAX (LINE_TOTAL)
FROM CUSTOMER NATURAL JOIN INVOICE NATURAL JOIN LINE
WHERE CUS_AREACODE ='615'
GROUP BY CUS_CODE;
What indexes would you recommend for the query you above?
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.
 SELECT , P_CODE, P_PRICESELECT , P_CODE, P_?-QOH**P-PRICE FROM PRODUCT WHERE ,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!