Joe Celko's SQL for Smarties and over one million other books are available for Amazon Kindle. Learn more

Sell Us Your Item
For a $1.41 Gift Card
Trade in
Have one to sell? Sell yours here
Start reading Joe Celko's SQL for Smarties on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

Joe Celko's SQL for Smarties: Advanced SQL Programming Third Edition (The Morgan Kaufmann Series in Data Management Systems) [Paperback]

Joe Celko
3.6 out of 5 stars  See all reviews (7 customer reviews)


Available from these sellers.


Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Kindle Edition $50.36  
Paperback --  
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

August 15, 2005 0123693799 978-0123693792 3
SQL for Smarties was hailed as the first book devoted explicitly to the advanced techniques needed to transform an experienced SQL programmer into an expert. Now, 10 years later and in the third edition, this classic still reigns supreme as the book written by an SQL master that teaches future SQL masters. These are not just tips and techniques; Joe also offers the best solutions to old and new challenges and conveys the way you need to think in order to get the most out of SQL programming efforts for both correctness and performance.

In the third edition, Joe features new examples and updates to SQL-99, expanded sections of Query techniques, and a new section on schema design, with the same war-story teaching style that made the first and second editions of this book classics.

* Expert advice from a noted SQL authority and award-winning columnist, who has given ten years of service to the ANSI SQL standards committee and many more years of dependable help to readers of online forums.
* Teaches scores of advanced techniques that can be used with any product, in any SQL environment, whether it is an SQL-92 or SQL-99 environment.
* Offers tips for working around system deficiencies.
* Continues to use war stories--updated!--that give insights into real-world SQL programming challenges.


Editorial Reviews

Review

"This book is a classic, and this revision will merely solidify its position."
--Rudy Limeback

Book Description

A completely revised edition of the classic advanced SQL book!

Product Details

  • Paperback: 840 pages
  • Publisher: Morgan Kaufmann; 3 edition (August 15, 2005)
  • Language: English
  • ISBN-10: 0123693799
  • ISBN-13: 978-0123693792
  • Product Dimensions: 7.5 x 1.8 x 9.2 inches
  • Shipping Weight: 3.8 pounds
  • Average Customer Review: 3.6 out of 5 stars  See all reviews (7 customer reviews)
  • Amazon Best Sellers Rank: #331,169 in Books (See Top 100 in Books)

Customer Reviews

Most Helpful Customer Reviews
13 of 16 people found the following review helpful
3.0 out of 5 stars Somewhat useful but overrated. August 2, 2007
Format:Paperback
This is one of those books that are perhaps nice to have IN ADDITION to something better. Btw, do NOT overestimate the "for smarties" part in the title: the book is not all that advanced: it's more like an extensive cookbook with a lot of personal opinion thrown in (not always consistent; for example, in one place he inveighs against the evils of using sequential-number sequences as primary keys -- 'cause a table is not a sequence, you see, we're talking about sets here, who, by definition, are unordered -- OK, fine. Ten pages later he blasts the GUID type -- why? Because it's not inherently sequential and it's hard to spot the gaps in the sequences. But hey, why do we care about gaps? All we care about is that the field values be unique, which they are, gaps or no gaps. Seems like GUIDs should be perfect from the set-theoretical point of view, but no, he doesn't like them -- precisely because of the presence of those aspects, the lack of which he bemoaned one chapter back in the IDENTITY type. It's like he wrote these two chapters one ten years after the other, and forgot what he was talking about in one when writing the other.

The content (or rather the intent behind it) is very good. There's a logical progression from the overall-schema things, to tables, and so on, including such esoterica as hierarchies and graphs (which is good not only, or even not so much because of the topics themselves, but because nice recent SQL features like CTEs are used a lot in the sample code thus demonstrating their non-trivial use).

The downsides: the main flaw in Celko's writing is that whatever he writes reads like a two-page journal article, by which I mean it's all a perfunctorily dashed-off collection of tidbits; the overall structure is very tenuous (for example, he starts the hierarchies' chapter by saying they're a sort of graphs -- but the graphs proper chapter comes afterwards: wouldn't it make more sense to switch their order in the book then?) Some chapters are borrowed from other writers: for example, the chapter on temporal databases is taken, or rather squeezed out of Snodgrass's book (which I happened to be reading in parallel and thus was able to notice that). I'm not hinting at plagiarism here: I'm sure Snodgrass was aware of this borrowing and had OK'ed it, but first it would be nice to mention the fact of borrowing (I think), and second, and most important, when you compress a book into a chapter, you gotta do it very carefully so as to keep the material connected, coherent, and clear. This is not the case here (go for the original: it's good, and can be downloaded for free; google on the name).

In general, Celko's writing, while not abhorrent, is mostly (though not everywhere) very sloppy; everything reads like a first draft never touched again by either the author or an editor. A fair amount of typos, and a lot of unclear, careless pages that make you struggle for meaning (not always successfully). Mangled French again: Joseph, if there's an accent over the last 'e' in a masculine form of a participle, it's gotta be an accent aigu, not accent grave (feminine simply adds an extra 'e' w/o changing anything else); thus it's 'née' not 'nèe'. Maybe it's a typo, but it's consistently repeated thoughout the book (and actually present in his other books!). While we're here: "Borland (née Inprise)" is actually the other way around: Inprise (née Borland).

There's no question that the author is a smart guy, but writing isn't his forte and he should be less casual about it -- and then, he should also insist that his publisher provide good editorial oversight. I think MK is a good publisher, and I think they ought to be able to do a better job helping their writers achieve readability.

Bottom line: I don't regret having this book; it's friendly and chatty (in a good sense); the inherently dry material is livened up a bit by a sprinkling of curious trivia; it's been somewhat enlightening on the first read, and repeatedly useful as a reference afterwards. Otoh, it's written sloppily and I feel that, inasmuch as I benefitted from it, I did only because I happen to have enough foundation to compensate for its flaws on my own. But I'm not looking for this kind of effort when reading technical books though, so three stars. Could be more, but for that the book needs to be aggressively edited and restructured. It's the third edition, btw: it would seem that there's been plenty of time to do just that.

All in all, I recommend it, but only half-heartedly: as long as the prospective reader understands that this is not a terribly advanced book, as well that the reading won't be easy. The book's OK, but not on par with what you get from writers like Gray or Date.
Comment | 
Was this review helpful to you?
7 of 9 people found the following review helpful
5.0 out of 5 stars Not for Beginners, best for enthusiasts July 4, 2006
Format:Paperback
Don't be tempted to buy this book unless you have at least a year of experience writing complex SQL and a reasonable knowledge of the underlying data structures and database paradigms. In fact the author has a brief gripe about beginners criticising his book as not being suited for them. The book is not designed for beginners. However, if you have a suitable level of experience then this book is a must. Full of technical know-how and the supporting theory or logic in most cases. The kind of knowledge, that takes decades to accumulate, jumps off every page. If you have done a few of those same hard yards you will quickly appreciate the benefit from the distilled experience on offer. The book is written in an easy conversational style that makes even the hardest stretches of logic easy to digest. The short and concise code samples demonstrate the points made in the text very well. Solutions to every day problems are built up step by step, with each step clearly showing the progression of the logic and the potential pitfalls. In short anyone with intermediate SQL skills or higher will get tremendous advantage out of this book, I thoroughly recommend it.

Starting from the theory of database design, the book moves into Normalization, data types operations, statements, views, functions, statistics, series and gaps, arrays, trees, temporal queries, OLAP and optimization (not a complete chapter list). In short many of the same topics you get in an introductory or intermediate level book. However the depth of the coverage and the practicality of the advice and treatments given to the actual problems that dealing with these things entails, sets this book apart. These topics are not a perfunctory explanation of what they are, but a through look at how to deal with the problems you have probably already run into. As a final recommendation this book contains a good set of references to further reading on much of the theory behind the advised treatments. The text judiciously references these other authors and theory without degrading readability.

Pro - Contains the kind of experience you don't have time to suffer for.

Con - Not for Beginners, best for enthusiasts.
Comment | 
Was this review helpful to you?
15 of 21 people found the following review helpful
1.0 out of 5 stars A Major disappointment March 28, 2007
Format:Paperback|Amazon Verified Purchase
I've seen various versions of this book sitting on DBA bookshelves for years. The concept is a good one - advanced sql for those of us who already have significant experience.

This book is NOT an advanced SQL textbook. Another reviewer, Tim Boyes, describes it as "SQL 201", and he's exactly right. Most of the content in this book is just barely above basic SQL knowledge, and half the time I felt like I was reading a re-hash of SQL BOL.

Another thing that I noticed (how could I miss it?) was the almost incomprehensible arrogance of the author, particularly when he compares the use of IDENTITY to drug abuse. Come on, Joe. That's just insulting.

This one's going back to Amazon.
Was this review helpful to you?




Forums

Search Customer Discussions
Search all Amazon discussions

Topic From this Discussion
source code? Be the first to reply
Why are the reviews for all editions lumped together?
I have the first edition of the book and, if there are any typos, I didn't find them. However, given the number of complaints about typos I would have to believe that the later editions are different, at least in that respect.
Jan 17, 2008 by P. Vogel |  See all 2 posts
Start a new discussion
Topic:
First post:
Prompts for sign-in
 




So You'd Like to...


Create a guide


Look for Similar Items by Category