1. A Little Background. Introduction to Databases What Is SQL? What Is MySQL? What's in Store 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 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 4. Filtering.
Condition Evaluation Building a Condition Condition Types NULL: That Four-Letter Word Exercises 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 6. Working with Sets. Set Theory Primer Set Theory in Practice Set Operators Set Operation Rules Exercises 7. Data Generation, Conversion, and Manipulation. Working with String Data Working with Numeric Data Working with Temporal Data Conversion Functions Exercises 8. Grouping and Aggregates.
Grouping Concepts Aggregate Functions Generating Groups Group Filter Conditions Exercises 9. Subqueries. What Is a Subquery? Subquery Types Noncorrelated Subqueries Correlated Subqueries When to Use Subqueries Subquery Wrap-up Exercises 10. Joins Revisited. Outer Joins Cross Joins Natural Joins Exercises 11. Conditional Logic. What Is Conditional Logic? The Case Expression Case Expression Examples Exercises 12. Transactions.
Multiuser Databases What Is a Transaction? 13. Indexes and Constraints. Indexes Constraints A. ER Diagram for Example Database B. MySQL Extensions to the SQL Language C. Solutions to Exercises D. Further Resources Index.