
"In this complete revision and expansion of his first SQL Puzzles book, Joe Celko challenges you with his trickiest puzzles - and then helps solve them with a variety of solutions and explanations. Joe demonstrates the thought processes that are involved in attacking a problem from an SQL perspective to help advanced database programmers solve the puzzles you frequently face. These techniques not only help with the puzzle at hand, but help develop the mindset needed to solve the many difficult SQL puzzles you face every day. Of course, part of the fun is to see whether or not you can write better solutions than Joe's." "In addition to updating the solutions for SQL Style and SQL-99 (and beyond) standards, Joe has added many new puzzles, dozens of additional solutions, and new chapters." "The new edition features are: many new puzzles added!; dozens of new solutions to puzzles, and using features in SQL-99; code is edited to conform to SQL STYLE rules; new chapter on temporal query puzzles; new chapter on common misconceptions about SQL and RDBMS that leads to problems."--Jacket.
Do yourself a favor and pick up some books about SQL by Joe Celko's SQL Puzzles and Answers. If you follow it, you will learn how to accomplish various queries while having restrictions on dialects or whatever. It's a real mind-expander. I found myself doing in SQLite things I hadn't thought possible for that set of keywords.