Joe Celko's SQL puzzles and answers - Celko, Joe (Morgan Kaufmann series in data management systems, 2007)