Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ASSIGNMENT
(Chapter 5&6)
b. 1NF
c.
d.
e.
15. All relations are in 3NF since there are no partial functional
dependencies or transitive dependencies. It could be argued that zip
code is determined by city and state (also by address with 9-digit
zip codes). This could be a good point to discuss in class.
CHAPTER 6
(1,19)
Answers:
19.
Answers:
An index on the State field of the customer table would help with
grouping and sorting. An index on Order_Date in the order table would
help with qualifying to the desired period. If rows are sorted by
description within state, it would seem that a index on Product
_Description in the product table might be helpful, but such an index
would likely not be used by most DBMSs because the number of rows
to sort within each category is so few.
An index on Product_Finish in the Product table would help to compute
the totals by product finish.
An index on Order_Date would help to quickly find the desired orders,
and an index on Order_ID in the order line table would speed
joining.
An index on Product_Line_ID in product would speed grouping, and an
index on Product_ID in the order line table would speed joining.