
Let's face it, SQL is a deceptively simple language 2 learn, & many database developers never go far beyond the simple statement: SELECT FROM WHERE . But there is "so" much more you can do with the language. In the "SQL Cookbook," experienced SQL developer Anthony Molinaro shares his favorite SQL techniques & features. You'll learn about:
Window functions, arguably the most significant enhancement 2 SQL in the past decade. If you're not using these, you're missing out
Powerful, database-specific features such as SQL Server's PIVOT & UNPIVOT operators, Oracle's MODEL clause, & PostgreSQL's very useful GENERATE_SERIES function
Pivoting rows into columns, reverse-pivoting columns into rows, using pivoting 2 facilitate inter-row calculations, & double-pivoting a result set
"Bucketization," & why you should never use that term in Brooklyn.
How 2 create histograms, summarize data into buckets, perform aggregations over a moving range of values, generate running-totals & subtotals, & other advanced, data warehousing techniques
The technique of "walking a string," which allows you 2 use SQL 2 parse through the characters, words, or delimited elements of a string
Written in O'Reilly's popular Problem/Solution/Discussion style, the "SQL Cookbook" is sure 2 please. Anthony's credo is: "When it comes down 2 it, we all go 2 work, weall have bills 2 pay, & we all want 2 go home at a reasonable time & enjoy what's still available of our days." The "SQL Cookbook" moves quickly from problem 2 solution, saving you time each step of the way.
This book falls into that category. What's really nice is that the author provides solutions 4 5(!) different databases. And he does a good job explaining the solutions, making it easy 2 extrapolate them 2 solve similar queries.