Joe Celko's analytics and OLAP in SQL - Celko, Joe (Morgan Kaufmann series in data management systems, 2006)