
7.4 SQL Does Windows 307
Consider the following examples (which are by no means comprehensive):
9 My music and video organization has several stores, and I've captured sales
data for a number of months. For every month recorded, I'd like to see the
sales of each store averaged over that month and the two preceding
months. By averaging over three months, spikes caused by unusual condi-
tions can be smoothed out, giving a more accurate picture of sales trends.
9 For every store, I'd like to see the cumulative sales for every month of last
year, ordered by month.
9 To watch how sales are growing, or shrinking, in each store, ...