Nt1310 Unit 3

511 Words2 Pages

Part B: Based on the following query: SELECT P_CODE, P_QOH*P_PRICE FROM PRODUCT WHERE P_QOH*P_PRICE > (SELECT AVG(P_QOH*P_PRICE) FROM PRODUCT) 1. What is the likely data sparsity of the P_QOH and P_PRICE columns? P_QOH and P_PRICE columns are most likely going to have high levels of data sparsity. This might not necessarily mean that they will be empty, but instead will have ‘0’ as a digit – and in this case, will slow down processing. 2. Should you create an index, what would the index column(s) be, and why should you create that index? Since we’ve narrowed down that making use of that query on the columns P_QOH and P_PRICE will have high data sparsity, making an index isn’t going to improve accessing data – even with using the query, and

More about Nt1310 Unit 3

Open Document