Chapter Summary
Chapter Summary
SELECT DISTINCT
salesperson_company.salesperson_id,
company_line.company_id,
salesperson_line.product_line_id
FROM salesperson_company
JOIN company_line
ON salesperson_company.company_id = company_line.company_id
JOIN salesperson_line
ON salesperson_company.salesperson_id = salesperson_line.salesperson_id
AND company_line.product_line_id = salesperson_line.product_line_id;
Tables requiring a separate effort to reach Fifth Normal Form are extremely
rare. In this example, if the special business rule was not in effect the original
salesperson_company_line table would be the correct choice because it imple-
ments a three-way many-to-many relationship among salesperson, company,
and product line... and it would already be in Fifth Normal Form. In most cases,
once youve reached Third Normal Form, youve reached Boyce-Codd, Fourth,
and Fifth Normal Forms as well.