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 m
Joe Celko's SQL for smarties : advanced sql programming
- Publisher
- Elsevier
- Year
- 2011
- Tongue
- English
- Leaves
- 772
- Series
- The Morgan Kaufmann series in data management systems
- Edition
- 4th ed
- Category
- Library
No coin nor oath required. For personal study only.
✦ Synopsis
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, 15 years later and in its fourth 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 fourth 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.KEY FEATURES Expert advice from a noted SQL authority and award-winning columnist who has given ten years service to the ANSI SQL standards committee Teaches scores of advanced techniques that can be used with any product, in any SQL environment, whether it is an SQL 92 or SQL 2008 environment Offers tips for working around deficiencies and gives insight into real-world challenges
✦ Table of Contents
Databases versus File Systems......Page 3
Tables as Relationships......Page 6
Rows versus Records......Page 7
Columns versus Fields......Page 8
CREATE SCHEMA Statement......Page 9
Sessions......Page 13
Atomicity......Page 14
Consistency......Page 15
The Three Phenomena......Page 16
The Isolation Levels......Page 18
Pessimistic Concurrency Control......Page 20
SNAPSHOT Isolation and Optimistic Concurrency......Page 21
Deadlock and Livelocks......Page 23
CREATE SCHEMA Statement......Page 25
CREATE DOMAIN Statement......Page 26
CREATE SEQUENCE......Page 27
Using VIEWs for Schema Level Constraints......Page 28
Using PRIMARY KEYs and ASSERTIONs for Constraints......Page 32
Character Set Related Constructs......Page 33
CREATE COLLATION......Page 34
CREATE TRANSLATION......Page 35
ROWID and Physical Disk Addresses......Page 36
IDENTITY Columns......Page 37
GUIDs......Page 41
UUIDs......Page 42
Unique Value Generators......Page 43
Preallocated Values......Page 44
Special Series......Page 45
Prime Numbers......Page 46
Random Order Values......Page 49
Other Series......Page 51
Base Tables and Related Elements......Page 52
Column Constraints......Page 54
DEFAULT Clause......Page 55
NOT NULL Constraint......Page 56
CHECK( ) Constraints......Page 57
UNIQUE and PRIMARY KEY Constraints......Page 59
REFERENCES Clause......Page 61
Nested UNIQUE Constraints......Page 63
Overlapping Keys......Page 66
Single versus Multiple-Column Uniqueness......Page 69
CREATE ASSERTION Constraints......Page 77
TEMPORARY TABLE Declarations......Page 78
Manipulating Tables......Page 79
DROP TABLE