Databases Reference
In-Depth Information
Itemset_Key = 1 wherein all the other values are set to zero. Details of
this row will be provided in Chapter 7. For the purposes of this dis-
cussion, we can assume the Market Basket Table has been created and
populated.
mArket BAsket Query
Once a batch of Itemsets has been loaded into the Market Basket Table, the
data is ready to be queried into a usable form. The SQL that will perform this
query is in FigureĀ 5.2. The indexing of the Market Basket Table, explained in
Chapter 6, makes the Market Basket Query feasible. The batch cycles of the
Market Basket Query, explained in Chapter 7, control the execution of the
Market Basket Query. The Market Basket Query selects data from only the
Market Basket Table in a recursive join that juxtaposes all the objects within
a single Itemset.
,16(57,1720$5.(7B%$6.(7B%,B7$%/(
,7(06(7B.(<
'5,9(5B2%-(&7B.(<
'5,9(5B48$17,7<
'5,9(5B'2//$56
'5,9(5B&2817
&255B2%-(&7B.(<
&255B48$17,7<
&255B'2//$56
&255B&2817
6(/(&7
$,7(06(7B.(<
$2%-(&7B.(< $6'5,9(5B2%-(&7B.(<
$48$17,7< $6'5,9(5B48$17,7<
$'2//$56 $6'5,9(5B'2//$56
$6'5,9(5B&2817
%2%-(&7B.(< $6&255B2%-(&7B.(<
%48$17,7< $6&255B48$17,7<
%'2//$56 $6&255B'2//$56
$6&255B&2817
)5200$5.(7B%$6.(7B7$%/($
,11(5-2,10$5.(7B%$6.(7B7$%/(%
21$,7(06(7B.(< %,7(06(7B.(<
:+(5($2%-(&7B.(<!%2%-(&7B.(<
$1'$2%-(&7B.(<!
fIGure 5.2
Market Basket Query.
Search WWH ::




Custom Search