My Account
View Cart
Home
Community
Books & Videos
Safari Books Online
Conferences
Training
School of Technology
About
Complete List
Bestsellers
New Releases
Rough Cuts
Upcoming Titles
Ebooks
By Publisher
By Series
Out of Print
Order Info
Search
Search Tips
Tell a friend
Learning SQL
By
Alan Beaulieu
August 2005
Pages: 306
|
Table of Contents
|
Index
|
Sample Chapter
Table of Contents
Chapter 1
A Little Background
Introduction to Databases
What Is SQL?
What Is MySQL?
What's in Store
Chapter 2
Creating and Populating a Database
Creating a MySQL Database
Using the mysql Command-Line Tool
MySQL Data Types
Table Creation
Populating and Modifying Tables
When Good Statements Go Bad
The Bank Schema
Chapter 3
Query Primer
Query Mechanics
Query Clauses
The select Clause
The from Clause
The where Clause
The group by and having Clauses
The order by Clause
Exercises
Chapter 4
Filtering
Condition Evaluation
Building a Condition
Condition Types
NULL: That Four-Letter Word
Exercises
Chapter 5
Querying Multiple Tables
What Is a Join?
Joining Three or More Tables
Self-Joins
Equi-Joins Versus Non-Equi-Joins
Join Conditions Versus Filter Conditions
Exercises
Chapter 6
Working with Sets
Set Theory Primer
Set Theory in Practice
Set Operators
Set Operation Rules
Exercises
Chapter 7
Data Generation, Conversion, and Manipulation
Working with String Data
Working with Numeric Data
Working with Temporal Data
Conversion Functions
Exercises
Chapter 8
Grouping and Aggregates
Grouping Concepts
Aggregate Functions
Generating Groups
Group Filter Conditions
Exercises
8-4 (Extra Credit)
Chapter 9
Subqueries
What Is a Subquery?
Subquery Types
Noncorrelated Subqueries
Correlated Subqueries
When to Use Subqueries
Subquery Wrap-up
Exercises
Chapter 10
Joins Revisited
Outer Joins
Cross Joins
Natural Joins
Exercises
Chapter 11
Conditional Logic
What Is Conditional Logic?
The Case Expression
Case Expression Examples
Exercises
Chapter 12
Transactions
Multiuser Databases
What Is a Transaction?
Chapter 13
Indexes and Constraints
Indexes
Constraints
Appendix A
ER Diagram for Example Database
Appendix B
MySQL Extensions to the SQL Language
Select Extensions
Combination Insert/Update Statements
Ordered Updates and Deletes
Multitable Updates and Deletes
Appendix C
Solutions to Exercises
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
8-4 (Extra Credit)
Chapter 9
Chapter 10
Chapter 11
Appendix D
Further Resources
Advanced SQL
Database Programming
Database Design
Database Tuning
Database Administration
Report Generation
Colophon
Return to
Learning SQL