Joe Celko's analytics and OLAP in SQL - Celko, Joe. (Morgan Kaufmann ;, 2006)