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. New to the 5 th Edition: Downloadable data sets, code samples, and vendor-specific implementations! Overview of the bitemporal model Extended coverage of descriptive statistic aggregate functions New chapter covers flaws in DDL Examination of traditional acid versus base transaction models Reorganized to help you navigate related topics with ease Expert advice from a noted SQL authority and award-winning columnist Joe Celko, who served on the ANSI SQL standards committee for over a decade Teaches scores of advanced techniques that can be used with any product, in any SQL environment, whether it is SQL 92 or SQL 2011 Offers tips for working around deficiencies and gives insight into real-world challenges
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.
- New to the 5th Edition:
- Downloadable data sets, code samples, and vendor-specific implementations!
- Overview of the bitemporal model
- Extended coverage of descriptive statistic aggregate functions
- New chapter covers flaws in DDL
- Examination of traditional acid versus base transaction models
- Reorganized to help you navigate related topics with ease
- Expert advice from a noted SQL authority and award-winning columnist Joe Celko, who served on the ANSI SQL standards committee for over a decade
- Teaches scores of advanced techniques that can be used with any product, in any SQL environment, whether it is SQL 92 or SQL 2011
- Offers tips for working around deficiencies and gives insight into real-world challenges
Content: Front Matter, Pages i-ii Copyright, Page iv Dedication, Page v Introduction to the Fifth Edition, Pages xvii-xviii Chapter 1 - Databases Versus File Systems, Pages 3-15 Chapter 2 - Transactions and Concurrency Control, Pages 17-34 Chapter 3 - Tables, Pages 35-63 Chapter 4 - Keys, Locators, and Generated Values, Pages 65-74 Chapter 5 - Normalization, Pages 75-106 Chapter 6 - VIEWs, Derived, and Other Virtual Tables, Pages 107-129 Chapter 7 - Auxiliary Tables, Pages 131-177 Chapter 8 - Other Schema Objects, Pages 179-197 Chapter 9 - DDL Flaws to Avoid, Pages 199-210 Chapter 10 - Numeric Data in SQL, Pages 213-235 Chapter 11 - Character Data Types in SQL, Pages 237-252 Chapter 12 - Temporal Data Types in SQL, Pages 253-279 Chapter 13 - Multiple Column Data Elements, Pages 281-294 Chapter 14 - NULLs—Missing Data in SQL, Pages 295-314 Chapter 15 - Table Operations, Pages 315-337 Chapter 16 - Set Operations, Pages 339-351 Chapter 17 - Comparison or Theta Operators, Pages 355-365 Chapter 18 - Subquery Predicates, Pages 367-393 Chapter 19 - BETWEEN and OVERLAPS Predicates, Pages 395-409 Chapter 20 - CASE Expression Family, Pages 411-421 Chapter 21 - LIKE and SIMILAR TO Predicates, Pages 423-431 Chapter 22 - Basic SELECT Statement, Pages 433-438 Chapter 23 - Basic Aggregate Functions, Pages 439-470 Chapter 24 - Advance Descriptive Statistics, Pages 471-474 Chapter 25 - OLAP Aggregation in SQL, Pages 475-493 Chapter 26 - Advanced SELECT Statements, Pages 495-543 Chapter 27 - Graphs in SQL, Pages 547-578 Chapter 28 - Trees and Hierarchies in SQL, Pages 579-610 Chapter 29 - Queues, Pages 611-620 Chapter 30 - Matrices in SQL, Pages 621-636 Chapter 31 - Partitioning and Aggregating Data in Queries, Pages 639-663 Chapter 32 - Sub-sequences, Regions, Runs, Gaps, and Islands, Pages 665-700 Chapter 33 - Auctions, Pages 701-712 Chapter 34 - Relational Division, Pages 713-728 Chapter 35 - Temporal Queries, Pages 729-773 Chapter 36 - Procedural Semi-Procedural and Declarative Programming in SQL, Pages 777-784 Chapter 37 - Nesting Levels in SQL, Pages 785-793 Chapter 38 - Embedded SQL, CLI Dynamic SQL, and SQL/PSM, Pages 795-813 Index, Pages 815-834 __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. 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 are: examples to reflect the ANSI/ISO standards so anyone can use it; data element names to meet new ISO-11179 rules; new ways to write common queries, such as finding coverings, partitions, runs in data, auctions and inventory, relational divisions and so forth. The book explains principles of SQL programming as well as code. A new chapter discusses design flaws in DDL, such as attribute splitting, non-normal forum redundancies and tibbling. Other topics include: traditional acid versus base transaction models, now popular in NoSQL products; computed columns and the deferrable options in constraints; bi-temporal model; overview of SQL/PSM that is applicable to proprietary 4GL vendor extensions. -- Edited summary from book