See buying choices for this item to see if it's one of the millions that are eligible for Amazon Prime.
Joe Celko's SQL for Smarties: Advanced SQL Programming and over 300,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

21 used & new from $9.69

Have one to sell? Sell yours here
 
 
Joe Celko's SQL for Smarties: Advanced SQL Programming (The Morgan Kaufmann Series in Data Management Systems)
 
 
Start reading Joe Celko's SQL for Smarties: Advanced SQL Programming on your Kindle in under a minute.

Don’t have a Kindle? Get yours here.
 
  

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

by Joe Celko (Author) "THIS CHAPTER DISCUSSES the DDL (Data Definition Language), which is used to create a database schema, and it is related to the next chapter on..." (more)
Key Phrases: empty set returns, first working table, common vendor extension, Chris Date, United States, Third Normal Form (more...)
4.1 out of 5 stars See all reviews (49 customer reviews)


Available from these sellers.


4 new from $24.48 17 used from $9.69
Also Available in: List Price: Our Price: Other Offers:
Kindle Edition (Kindle Book) $34.56
Paperback (3) $60.95 $38.40 39 used & new from $29.50
What Do Customers Ultimately Buy After Viewing This Item?
Joe Celko's SQL for Smarties: Advanced SQL Programming (The Morgan Kaufmann Series in Data Management Systems)
73% buy the item featured on this page:
Joe Celko's SQL for Smarties: Advanced SQL Programming (The Morgan Kaufmann Series in Data Management Systems) 4.1 out of 5 stars (49)
SQL Cookbook (Cookbooks (O'Reilly))
11% buy
SQL Cookbook (Cookbooks (O'Reilly)) 4.7 out of 5 stars (44)
$26.37
Joe Celko's Trees and Hierarchies in SQL for Smarties, (The Morgan Kaufmann Series in Data Management Systems)
6% buy
Joe Celko's Trees and Hierarchies in SQL for Smarties, (The Morgan Kaufmann Series in Data Management Systems) 3.5 out of 5 stars (6)
$31.68
The Art of SQL
5% buy
The Art of SQL 4.7 out of 5 stars (18)
$29.69

Customers Who Bought This Item Also Bought

Joe Celko's Trees and Hierarchies in SQL for Smarties, (The Morgan Kaufmann Series in Data Management Systems)

Joe Celko's Trees and Hierarchies in SQL for Smarties, (The Morgan Kaufmann Series in Data Management Systems)

by Joe Celko
3.5 out of 5 stars (6)  $31.68
Joe Celko's SQL Puzzles and Answers (The Morgan Kaufmann Series in Data Management Systems)

Joe Celko's SQL Puzzles and Answers (The Morgan Kaufmann Series in Data Management Systems)

by Joe Celko
3.6 out of 5 stars (13)  $39.55
Joe Celko's Thinking in Sets:  Auxiliary, Temporal, and Virtual Tables in SQL (The Morgan Kaufmann Series in Data Management Systems)

Joe Celko's Thinking in Sets: Auxiliary, Temporal, and Virtual Tables in SQL (The Morgan Kaufmann Series in Data Management Systems)

by Joe Celko
2.7 out of 5 stars (7)  $23.36
Joe Celko's SQL Programming Style (The Morgan Kaufmann Series in Data Management Systems)

Joe Celko's SQL Programming Style (The Morgan Kaufmann Series in Data Management Systems)

by Joe Celko
3.9 out of 5 stars (8)  $28.04
SQL Cookbook (Cookbooks (O'Reilly))

SQL Cookbook (Cookbooks (O'Reilly))

by Anthony Molinaro
4.7 out of 5 stars (44)  $26.37
Explore similar items

Editorial Reviews

Amazon.com Review
In the SQL database community, Joe Celko is a well-known columnist and purveyor of valuable insights. In Joe Celko's SQL for Smarties: Advanced SQL Programming, he picks up where basic SQL training and experience leaves many database professionals and offers tips, techniques, and explanations that help readers extend their capabilities to top-tier SQL programming.

Although Celko denies that the book is about database theory, he nevertheless alludes to theory often to buttress his practical points. This title is not for novices, as the author points out. Instead, its intended audience is SQL programmers with at least a year's experience. The book maintains a fine balance between technical discussion and practical explanation--picking hot topics and offering advice on a wide range of issues.

The book uses ANSI SQL-89 as its baseline standard, with some mention of SQL-92 features. It does not, however, focus on any commercial product; this guide zeroes in on the SQL language. Celko covers all aspects of database design, optimization, and manipulation, with easy-to-understand explanations of key issues such as why not to use too many nulls, how to use practical normalization, and how to optimize queries.

This insightful text is manna for all the day-to-day SQL coders banging their heads over the language's subtle challenges. --Stephen W. Plain

Topics covered: Database design and normalization, SQL data types, querying, grouping, set operations, optimization, data scaling, and encoding. --This text refers to an out of print or unavailable edition of this title.

Review
"This book is a classic, and this revision will merely solidify its position."
--Rudy Limeback --This text refers to the Paperback edition.

See all Editorial Reviews


Product Details

  • Paperback: 576 pages
  • Publisher: Morgan Kaufmann; Expanded 2nd edition (October 1, 1999)
  • Language: English
  • ISBN-10: 1558605762
  • ISBN-13: 978-1558605763
  • Product Dimensions: 9 x 7 x 1.4 inches
  • Shipping Weight: 1.9 pounds
  • Average Customer Review: 4.1 out of 5 stars See all reviews (49 customer reviews)
  • Amazon.com Sales Rank: #398,531 in Books (See Bestsellers in Books)

Inside This Book (learn more)



Books on Related Topics (learn more)
 
SQL Bible by Alex Kriegel
 

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(4)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

49 Reviews
5 star:
 (25)
4 star:
 (10)
3 star:
 (8)
2 star:
 (4)
1 star:
 (2)
 
 
 
 
 
Average Customer Review
4.1 out of 5 stars (49 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
36 of 36 people found the following review helpful:
4.0 out of 5 stars An absolute MUST for any serious SQL programmer, February 14, 2000
First of all, I couldn't recommend this book for beginners. It is, however, PERFECT for the SQL programmer with some experience who is looking to take his/her SQL abilities to the next level. There are great pure SQL solutions for problems that many programmers think must be done outside of SQL in a host language. One of the most important lessons from the book is this: think in terms of sets and set theory instead of in terms of columns and rows. Lots of other great info though. Be warned: the examples are all written in the SQL-92 ANSI standard. Examples will have to be modified if your vendor-specific implementation of SQL doesn't follow the standard precisely. Kudos to Joe.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
127 of 143 people found the following review helpful:
3.0 out of 5 stars I'm a little underwhelmed..., January 11, 2002
By Bruce Pierson (Bozeman, MT USA) - See all my reviews
(REAL NAME)   
Not so much unimpressed at Joe's knowledge, which is impressive indeed: the book reads a lot more like a teaching text than most technical books.

But there are things in here which may lead astray some who have already done things that Joe advises strongly against. I will concentrate on one example: In chapter 3 "Numeric Data in SQL", under the heading "Generator Functions" (e.g., IDENTITY, AUTO_INCREMENT) we get this doozy: "This is a horrible, nonstandard, nonrelational proprietary extension that should be avoided whenever possible". Just a statement, no reason whatsoever provided for it, because I guess he assumes we know some "math rule" or something behind why it is such a bad idea. Now, we must think for a minute why one uses such a data column. In my own case, I have a table called Parts that contains parts from several different companies. So, I guess Joe would have me make a composite primary key from PN and CompanyID. But, wait a minute, that complicates matters when I need to have a foreign key reference to the Parts table, and, oh by the way, just what is CompanyID anyway, maybe some other composite key, or some goofy "rule-based" (can you say TRIBAL KNOWLEDGE) thing? You can't seriously believe that "ALFKI" is a better key than,say, 33. What happens when I get a new customer named "Alfred Kiplinger", and have to change the "rule" that I came up with for defining the primary key? See the problem? You're not going to remember the ID anyway, because the rule will be broken at some point. I also happen to think that a part number (to give one example) should be changeable. So, I don't make PN the primary key (because you should NEVER change a PK), I simply have the database generate one for me. What am I missing here? It was not explained to me in this book, it was just a blanket statement of preference, put across like a hard and fast rule.

But then come the contradictions. In the very next chapter on temporal data types, we get a very long paragraph on "key generators" and how they need to be designed to eliminate or minimize identical keys (I kid ye not!). He talks about elaborate hashing algorithms, the server system clock, random number generators, and how pseudorandom numbers are not usually a problem since the cycle size can be "hundreds of thousands or even millions of numbers". Huh? Amazon has 50,000,000 customers! I'm sure they wouldn't be too happy if "only" every millionth one had the same id! No mention in this entire section on GUID or UNIQUEIDENTIFIER, which won't repeat forever in the known universe!

Then there is seeming randomness to the topics introduced. I think I work with a guy that's a lot like Joe, but man, can it be hard to follow the "why" of what he is talking about! I usually figure it out about two days later when I'm sitting at my desk working on something completely different. Here's one example: We go from an incredibly long section on Domain Key Normal Form, with all of its calculus functional dependency stuff ("A determines B, therefore if CA = B, &c, &c, &c....."), to a paragraph right after this about normalization, and how a Students table should not have "Student data and also bowling scores". But come on, that's DB101, not Math335!

Bottom Line: The reason I gave three stars to this book is that I think I misread its intention. I believed it to be a book for someone who knew SQL, and wanted to become more advanced in SQL. Now that I ponder the title, however, I believe that it means "OK, here's a book for you scientific math types out there who want to apply your math degree to learn SQL", i.e., SQL for smarties, not for non-degreed dummies like myself. That, to me, is exactly how the book is written, and it probably succeeds against that yardstick.

Comment Comments (9) | Permalink | Was this review helpful to you? Yes No (Report this)



 
25 of 26 people found the following review helpful:
5.0 out of 5 stars Advanced SQL Programming!!!!, February 18, 1999
By A Customer
I have been programming database applications since 1984. I started using SQL in 1989. Since that time, I thought I had mastered SQL. Well ... I was wrong. Joe's book helps pin point the finer things concerning SQL ... how it really works. Anyone who is an ADVANCED user of SQL will find this book full of the little things that all most all developers will overlook. For example, how does a SQL statement really execute (pg 174 to 181) explains this in great detail. Many advanced developers are not just satisfied with knowing how to do something; but, want to know every little detail about how something really works. I found the chapters on normalization and Armstrong's Axioms to be the most useful concept in the entire book. Database design concepts are critical in performing a good, solid, and efficient query and this chapter brings it out very well. I have found this book to be my only source for advanced SQL concepts (besides Joe's puzzle book...). Good job ... and thanks.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars Great Book, Terrible Typesetting
As a DBA, I use this book often. It's been helpful and I recommend it to others.

My issue with this book is not its content, it's the terrible typesetting throughout... Read more
Published 23 months ago by Gary Waters

3.0 out of 5 stars Somewhat useful but overrated.
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... Read more
Published 23 months ago by Malleus Maleficarum

1.0 out of 5 stars A Major disappointment
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... Read more
Published on March 28, 2007 by J. Keller

4.0 out of 5 stars Joe does a pretty good job
Some of the concepts are a little lofty for the casual SQL programmer, but it is SQL for Smarties not dummies. Read more
Published on November 2, 2006 by Jaz Man

5.0 out of 5 stars A great help
As a DBA not doing so much with SQL this book is and has already been a great help for me creating complex queries.
Published on November 2, 2006 by W. Schijf

2.0 out of 5 stars Book overrated
This book is overrated. Many of the examples contain errors which will consume a lot of your time. I ended up spending more time figuring out where the mistakes were (in the... Read more
Published on July 30, 2006 by R. Riordan

5.0 out of 5 stars Not for Beginners, best for enthusiasts
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... Read more
Published on July 4, 2006 by Andrew Harris

4.0 out of 5 stars Great selection for serious SQL users
Excellent book, filled with very clearly presented examples and concepts from general SQL programming. Read more
Published on July 19, 2005 by Merrill Aldrich

5.0 out of 5 stars Indispensible recipes for SQL success.
I needed to link to this book for a blog entry, and I was looking for my review of this book when I realized I never wrote one. Read more
Published on March 16, 2005 by Christopher Wanko

3.0 out of 5 stars Smarties or oldies?
I have browsed at this book in bookstores for years, always wondering if the info in it would be of use to me.

I write queries all day, in SQL Server, Sybase 5. Read more
Published on December 9, 2004 by Daniel Williams

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (1 discussion)
  Discussion Replies Latest Post
Why are the reviews for all editions lumped together? 1 January 2008
See all discussions...  
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]

   


Product Information from the Amapedia Community

Beta (What's this?)


So You'd Like to...


Look for Similar Items by Category


The New Braun bodycruZer

Braun bodyCruzer Men's Body Groomer
Introducing the new Braun bodycruZer with a precision trimmer to efficiently trim body hair and a Gillette blade for smooth, clean shaving results.

Shop now

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Buy Three Books, Get a Fourth Free

4-for-3 Books
Order any four eligible books under $10 and get the lowest-price book free in our 4-for-3 Books Store. See more details.
 

Best Books

Best of the Month
See our editors' picks and more of the best new books on our Best of the Month page.
 

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.



Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Paranoia
Paranoia by Joseph Finder
My Soul to Lose
My Soul to Lose by Rachel Vincent
Glenn Beck's Common Sense
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates