Description
Enterprises throughout the world are confronted with exploding volumes of data, and many IT departments are looking for quick solutions. This insightful book demonstrates that since SQL code may run for 5 to 10 years, and run on different hardware, it must be fast and sound from the start. Expert authors Stephane Faroult and Peter Robson offer SQL best practices and relational theory that force you to focus on strategy rather than specifics.
Full Description
Table of Contents
-
Chapter 1 Laying Plans
-
The Relational View of Data
-
The Importance of Being Normal
-
To Be or Not to Be, or to Be Null
-
Qualifying Boolean Columns
-
Understanding Subtypes
-
Stating the Obvious
-
The Dangers of Excess Flexibility
-
The Difficulties of Historical Data
-
Design and Performance
-
Processing Flow
-
Centralizing Your Data
-
System Complexity
-
The Completed Plans
-
-
Chapter 2 Waging War
-
Query Identification
-
Stable Database Connections
-
Strategy Before Tactics
-
Problem Definition Before Solution
-
Stable Database Schema
-
Operations Against Actual Data
-
Set Processing in SQL
-
Action-Packed SQL Statements
-
Profitable Database Accesses
-
Closeness to the DBMS Kernel
-
Doing Only What Is Required
-
SQL Statements Mirror Business Logic
-
Program Logic into Queries
-
Multiple Updates at Once
-
Careful Use of User-Written Functions
-
Succinct SQL
-
Offensive Coding with SQL
-
Discerning Use of Exceptions
-
-
Chapter 3 Tactical Dispositions
-
The Identification of "Entry Points"
-
Indexes and Content Lists
-
Making Indexes Work
-
Indexes with Functions and Conversions
-
Indexes and Foreign Keys
-
Multiple Indexing of the Same Columns
-
System-Generated Keys
-
Variability of Index Accesses
-
-
Chapter 4 Maneuvering
-
The Nature of SQL
-
Five Factors Governing the Art of SQL
-
Filtering
-
-
Chapter 5 Terrain
-
Structural Types
-
The Conflicting Goals
-
Considering Indexes as Data Repositories
-
Forcing Row Ordering
-
Automatically Grouping Data
-
The Double-Edged Sword of Partitioning
-
Partitioning and Data Distribution
-
The Best Way to Partition Data
-
Pre-Joining Tables
-
Holy Simplicity
-
-
Chapter 6 The Nine Situations
-
Small Result Set, Direct Specific Criteria
-
Small Result Set, Indirect Criteria
-
Small Intersection of Broad Criteria
-
Small Intersection, Indirect Broad Criteria
-
Large Result Set
-
Self-Joins on One Table
-
Result Set Obtained by Aggregation
-
Simple or Range Searching on Dates
-
Result Set Predicated on Absence of Data
-
-
Chapter 7 Variations in Tactics
-
Tree Structures
-
Representing Trees in an SQL Database
-
Practical Implementation of Trees
-
Walking a Tree with SQL
-
Aggregating Values from Trees
-
-
Chapter 8 Weaknesses and Strengths
-
Deceiving Criteria
-
Abstract Layers
-
Distributed Systems
-
Dynamically Defined Search Criteria
-
-
Chapter 9 Multiple Fronts
-
The Database Engine as a Service Provider
-
Concurrent Data Changes
-
-
Chapter 10 Assembly of Forces
-
Increasing Volumes
-
Data Warehousing
-
-
Chapter 11 Stratagems
-
Turning Data Around
-
Querying with a Variable in List
-
Aggregating by Range (Bands)
-
Superseding a General Case
-
Selecting Rows That Match Several Items in a List
-
Finding the Best Match
-
Optimizer Directives
-
-
Chapter 12 Employment of Spies
-
The Database Is Slow
-
The Components of Server Load
-
Defining Good Performance
-
Thinking in Business Tasks
-
Execution Plans
-
Using Execution Plans Properly
-
What Really Matters?
-
-
PHOTO CREDITS
-
About the Author
Product Details
- Title:
- The Art of SQL
- By:
- Stephane Faroult, Peter Robson
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- March 2006
- Ebook Release:
- December 2008
- Pages:
- 368
- Print ISBN:
- 978-0-596-00894-9
- | ISBN 10:
- 0-596-00894-5
- Ebook ISBN:
- 978-0-596-15971-9
- | ISBN 10:
- 0-596-15971-4
Customer Reviews
