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