Joe Celko's SQL for Smarties: Advanced SQL Programming / Edition 3

Paperback (Print)
Used and New from Other Sellers
Used and New from Other Sellers
from $4.35
Usually ships in 1-2 business days
(Save 93%)
Other sellers (Paperback)
  • All (12) from $4.35   
  • New (2) from $105.00   
  • Used (10) from $4.35   
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any coupons and promotions
Seller since 2014

Feedback rating:



New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Seller since 2014

Feedback rating:


Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing All
Sort by


In the third edition, Joe Celko features new examples and update 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.

"...provides useful tips and tricks for advanced SQL programming to help users work around system deficiencies... addresses real and common programming problems and offers new and creative solutions."

Read More Show Less

Editorial Reviews

From Barnes & Noble
The Barnes & Noble Review
Joe Celko’s SQL for Smarties turns experienced SQL programmers into great SQL programmers. Now he’s updated this classic to reflect today’s state-of-the-art in SQL coding. That means new examples, many drawn from SQL-99 features that were still on the drawing board last time. It also means more advanced query techniques, plus a whole new discussion of schema design. What hasn’t changed, though, is just as important: Celko’s relentlessly informed and practical approach, and the breadth of his coverage.

Do you want to design or normalize databases more effectively? Make better use of data types, tables, CASE expressions, predicates, SELECT, VIEW, partitioning data, grouping operations, aggregate functions? Handle gaps, sequences, series? OLAP, transactions, currency control, optimization? Celko offers advanced techniques for all that, and plenty more. Get this book, and get a stack of Post-it Notes: you’ll use ’em. Bill Camarda, from the November 2005 Read Only

A compendium of tips and tricks for advanced SQL programming, with coverage of database and data design, data types, and operations on tables, in an informal, conversational style. The bulk of the book covers predicates and logical operators of SQL, and complex queries. SQL-89 features now supported by commercial RDBMSs are discussed, as well as SQL-92 and how it's being implemented in current and future database products. An appendix offers source code for six check-digit programs. Annotation c. Book News, Inc., Portland, OR (
From the Publisher
"This book is a classic, and this revision will merely solidify its position." —Rudy Limeback

"This book focuses on the problems of standardization and the related problems of measurements. It is clearly intended to encourage designers to at least be aware of the problems, before their database designs go live."—Jeffrey Putnam, October 2010,

Read More Show Less

Product Details

Meet the Author

Joe Celko served 10 years on ANSI/ISO SQL Standards Committee and contributed to the SQL-89 and SQL-92 Standards.

Mr. Celko is author a series of books on SQL and RDBMS for Elsevier/MKP. He is an independent consultant based in Austin, Texas.

He has written over 1200 columns in the computer trade and academic press, mostly dealing with data and databases.

Read More Show Less

Table of Contents

1 Database design 1
2 Normalization 61
3 Numeric data in SQL 101
4 Temporal data types in SQL 119
5 Character data types in SQL 169
6 NULLs : missing data in SQL 185
7 Multiple column data elements 201
8 Table operations 211
9 Comparison or theta operators 235
10 Valued predicates 241
11 CASE expressions 247
12 LIKE predicate 261
13 BETWEEN and OVERLAPS predicates 273
14 The [NOT] IN() predicate 287
15 EXISTS() predicate 299
16 Quantified subquery predicates 309
17 The SELECT statement 317
18 VIEWs, derived tables, materialized tables, and temporary tables 369
19 Partitioning data in queries 401
20 Grouping operations 425
21 Aggregate functions 439
22 Auxiliary tables 477
23 Statistics in SQL 509
24 Regions, runs, gaps, sequences, and series 549
25 Arrays in SQL 575
26 Set operations 591
27 Subsets 605
28 Trees and hierarchies in SQL 623
29 Temporal queries 641
30 Graphs in SQL 681
31 OLAP in SQL 709
32 Transactions and concurrency control 719
33 Optimizing SQL 731
Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)