An introduction to SQL window functions. First in a series of tutorials.