SQL Cookbook (Cookbooks (O'Reilly))

by O'Reilly Media, Inc.

$39.95
buy from amazon.com
Average Rating: * * * * half star
Sales Rank:15893 (lower is better)
Price Used:$18.00
Shipping:Free Shipping on most orders over $25*
Availability:In stock soon. Order now to get in line. First come, first served.
Label:O'Reilly Media, Inc.
Pages:628
Binding:Paperback
Publication Date:2005-12-16
Published By:O'Reilly Media, Inc.
ASIN:0596009763
Category:Book

Authors

Editorial Reviews and Product Descriptions

Product Description

You know the rudiments of the SQL query language, yet you feel you aren't taking full advantage of SQL's expressive power. You'd like to learn how to do more work with SQL inside the database before pushing data across the network to your applications. You'd like to take your SQL skills to the next level.

Let's face it, SQL is a deceptively simple language to learn, and 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 and features. You'll learn about:

Window functions, arguably the most significant enhancement to 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 and UNPIVOT operators, Oracle's MODEL clause, and PostgreSQL's very useful GENERATE_SERIES function

Pivoting rows into columns, reverse-pivoting columns into rows, using pivoting to facilitate inter-row calculations, and double-pivoting a result set

"Bucketization," and why you should never use that term in Brooklyn.

How to create histograms, summarize data into buckets, perform aggregations over a moving range of values, generate running-totals and subtotals, and other advanced, data warehousing techniques

The technique of "walking a string," which allows you to use SQL to 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 to please. Anthony's credo is: "When it comes down to it, we all go to work, weall have bills to pay, and we all want to go home at a reasonable time and enjoy what's still available of our days." The "SQL Cookbook" moves quickly from problem to solution, saving you time each step of the way.

Customer Reviews

Good book, but shipped falling apart - Reviewed on 2008-03-07
* *
1 customer found this review helpful, 7 did not.

Content is excellent, with good examples. I was able to solve a prloblem the very first time I used it. The issue I have is more with Amazon in that I ordered this book in a shipment of 4 others, so it was over a month before I cracked this one open. To my dismay, the binding is not glued on and the book is falling apart. Amazon customer service has not even responded to my three emails asking for resolution.

A great book! - Reviewed on 2008-02-25
* * * * *
1 customer found this review helpful.

I am a certified DB2 / Oracle DBA and a programmer. Even though, I can get through some of chapters very fast, I certainly have enjoyed reading it so far. One thing I like the most is to see how a problem is solved in many different databases including DB2, Oracle, MS-SQL, MySQL, and PostSQL!
As a reference - Reviewed on 2008-02-25
* * * * *
2 customers found this review helpful.

I found this book to be very complete. Providing solutions for multiple DBMSs was greately appreciated. I have been in I.T. for a long time and I have read many many books on all types of subjects. I often (too often) am disappointed with books I purchase. However, sometimes I am pleasantly surprised... this is one of those time.

I create numerous queries using all types of tools. As such, I sometimes insert the wrong syntax into a query. This book helps to quickly correct the error. In addition, it has given me some "tricks" that I was unaware of that have helped to simplify some of my queries.

It would be very advantageous to have the info in this book on a searchable site or application

Buy it, read it, and keep it close by to reference to.
It is real cook book - Reviewed on 2007-08-03
* * * * *
1 customer found this review helpful, 1 did not.

I am completely satisfied with this book.
Instead of inventing all the time "bicycle" I can use this book in my everyday work and concentrate on more important things in my projects.
MS SQL Server must be 2005 - Reviewed on 2007-06-26
* * * *
2 customers found this review not to be helpful.
This is a great product but some of the advanced features weren't available in SQL Server 2000. I really liked the windowing and hierarchical queries in this book but those features are not available in 2000. For the most part 2000 isn't used that often anymore but if you are one of the unfortunate to have to use it there will be some compatibility problems with the examples in this book.
Read More Customer Reviews »
Go To Amazon Product Page

* - See Amazon Product Page for shipping and pricing details.


Book Subjects