Book description
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.
Table of contents
- Copyright
- The Morgan Kaufmann Series in Data Management Systems
- Introduction to the Third Edition
- Database Design
- Normalization
- Numeric Data in SQL
- Temporal Data Types in SQL
- Character Data Types in SQL
- NULLs: Missing Data in SQL
- Multiple Column Data Elements
- Table Operations
- Comparison or Theta Operators
- Valued Predicates
- CASE Expressions
- LIKE Predicate
- BETWEEN and OVERLAPS Predicates
- The [NOT] IN() Predicate
- EXISTS() Predicate
- Quantified Subquery Predicates
- The SELECT Statement
- VIEWs, Derived Tables, Materialized Tables, and Temporary Tables
- Partitioning Data in Queries
- Grouping Operations
- Aggregate Functions
- Auxiliary Tables
- Statistics in SQL
- Regions, Runs, Gaps, Sequences, and Series
- Arrays in SQL
- Set Operations
- Subsets
- Trees and Hierarchies in SQL
- Temporal Queries
- Graphs in SQL
- OLAP in SQL
- Transactions and Concurrency Control
-
Optimizing SQL
- Access Methods
- Expressions and Unnested Queries
- Give Extra Join Information in Queries
- Index Tables Carefully
- Watch the IN Predicate
- Avoid UNIONs
- Prefer Joins over Nested Queries
- Avoid Expressions on Indexed Columns
- Avoid Sorting
- Avoid CROSS JOINs
- Learn to Use Indexes Carefully
- Order Indexes Carefully
- Know Your Optimizer
- Recompile Static SQL after Schema Changes
- Temporary Tables Are Sometimes Handy
- Update Statistics
-
References
- General References
- Logic
-
Mathematical Techniques
-
Random Numbers
- Scales and Measurements
-
Missing Values
-
Regular Expressions
- Graph Theory
-
Introductory SQL Books
- Optimizing Queries
-
Temporal Data and the Year 2000 Problem
- SQL Programming Techniques
-
Classics
- Forum
-
Updatable Views
-
Theory, Normalization, and Advanced Database Topics
- Books on SQL-92 and SQL-99
- Standards and Related Groups
- Web Sites Related to SQL
-
Statistics
-
Temporal Databases
-
New Citations
- About the Author
- Index
Product information
- Title: Joe Celko's SQL for Smarties, 3rd Edition
- Author(s):
- Release date: July 2010
- Publisher(s): Morgan Kaufmann
- ISBN: 9780080460048
You might also like
book
Joe Celko's SQL for Smarties, 5th Edition
SQL for Smarties was hailed as the first book devoted explicitly to the advanced techniques needed …
book
Joe Celko's Trees and Hierarchies in SQL for Smarties, 2nd Edition
The demand for SQL information and training continues to grow with the need for a database …
book
SQL and Relational Theory, 3rd Edition
SQL is full of difficulties and traps for the unwary. You can avoid them if you …
book
Effective SQL: 61 Specific Ways to Write Better SQL, First Edition
“Given the authors’ reputations, I expected to be impressed. I was blown away! . . . …