-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Data Analysis Using SQL and Excel - Second Edition
By :
Item sets are combinations of products that appear together within an order. This section starts by considering items sets comprising two products, showing how to use SQL to generate all such combinations. It then moves to some interesting variations, especially combinations of products at the household level rather than the order level. The next sections apply these ideas to creating association rules.
Item sets with just one product are not particularly interesting, so this section starts by looking at pairs of products. An item set is unordered, so the combination consisting of products A and B is the same as B and A. This section counts the number of product pairs in orders and shows how to use SQL to generate them.
If an order contains one product, how many two-way combinations of products does it have? The answer is easy. There are none, because the order has only one product. An order with two products has...
Change the font size
Change margin width
Change background colour