Joe Celko's SQL for Smarties

Joe Celko's SQL for Smarties : Advanced SQL Programming

3.96 (166 ratings by Goodreads)
By (author) 

Free delivery worldwide

Available. Dispatched from the UK in 1 business day
When will my order arrive?


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, 20 years later and in its fifth edition, this classic reference still reigns supreme as the only book written by a SQL master that teaches programmers and practitioners to become SQL masters themselves! These are not just tips and techniques; also offered are the best solutions to old and new challenges. Joe Celko conveys the way you need to think in order to get the most out of SQL programming efforts for both correctness and performance. New to the fifth edition, Joe features new examples to reflect the ANSI/ISO Standards so anyone can use it. He also updates data element names to meet new ISO-11179 rules with the same experience-based teaching style that made the previous editions the classics they are today. You will learn new ways to write common queries, such as finding coverings, partitions, runs in data, auctions and inventory, relational divisions and so forth. SQL for Smarties explains some of the principles of SQL programming as well as the code. A new chapter discusses design flaws in DDL, such as attribute splitting, non-normal forum redundancies and tibbling. There is a look at the traditional acid versus base transaction models, now popular in NoSQL products. You'll learn about computed columns and the DEFERRABLE options in constraints. An overview of the bi-temporal model is new to this edition and there is a longer discussion about descriptive statistic aggregate functions. The book finishes with an overview of SQL/PSM that is applicable to proprietary 4GL vendor extensions.
show more

Product details

  • Paperback | 852 pages
  • 195.58 x 236.22 x 58.42mm | 1,451.49g
  • Morgan Kaufmann Publishers In
  • San Francisco, United States
  • English
  • 5th edition
  • colour illustrations
  • 0128007613
  • 9780128007617
  • 798,682

Table of contents

PART I : Data Declaration Features 1. Databases versus File Systems 2. Transactions and Concurrency Control 3. Tables 4. Keys, Exposed Physical Locators and Generated Values 5. Normalization 6. VIEWs and CTEs 7. Auxiliary Tables and Views 8. Other Schema Objects 9. DDL Flaws to Avoid

PART II : Data Types 10. Numeric Data in SQL 11. Character Data Types in SQL 12. Temporal Data Types in SQL 13. Multiple Column Data Elements 14. NULLs and 3-Valued Logic in SQL 15. Table Administration Operations 16. Set Operators

PART III Row and Column Level Features 17. Comparison or Theta Operators 18. Quantified Subquery Predicates 19. BETWEEN and OVERLAPS Predicates 20. CASE Expression Family 21. LIKE and SIMILAR TO Predicates 22. Simple One Table SELECT Statements 23. Intermediate Aggregate Functions 24. Descriptive Statistic Aggregate Functions 25. OLAP Aggregate Functions 26. JOINs

PART IV: Data Structures in SQL 27. Graphs in SQL 28. Trees and Hierarchies in SQL 29. Queues and Lists 30. Matrices in SQL

PART V: Typical Queries 31. Coverings and Partitions 32. Runs, Gaps, and Islands Rewrite or Expansion 33. Inventory and Auction Models 34. Relational Division 35. Temporal Queries and Operations

PART VI: Implementation and Coding Issues 36. Access Methods 37. Basic Optimization Principles 38. Overview of SQL/PSM
show more

Review quote

"...a must-read book for any SQL programmer, covering advanced topics in an understandable way...aimed at taking experienced SQL programmers and giving them the extras to make them experts." --I Programmer, 2015
show more

About Joe Celko

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.
show more

Rating details

166 ratings
3.96 out of 5 stars
5 32% (53)
4 41% (68)
3 20% (34)
2 5% (9)
1 1% (2)
Book ratings by Goodreads
Goodreads is the world's largest site for readers with over 50 million reviews. We're featuring millions of their reader ratings on our book pages to help you find your new favourite book. Close X