Buying Options
Learning SQL, Second Edition
Print $39.99
Add to Cart
Print+Ebook $43.99
Add to Cart
Ebook $31.99
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £30.99
Add to Cart
What is this?

Product Editions

  1. Learning SQL, Second Edition - April 2009
  2. Learning SQL - August 2005
Description
Updated for the latest database management systems, this introductory guide will get you up and running with SQL quickly. Whether you need to write database applications, perform administrative tasks, or generate reports, Learning SQL, Second Edition, will help you easily master all the SQL fundamentals. Each chapter presents a self-contained lesson on a key SQL concept or technique, with numerous illustrations, annotated examples, and exercises to let you practice the skills you learn.
Full Description
Table of Contents
  1. Chapter 1 A Little Background

    1. Introduction to Databases

    2. What Is SQL?

    3. What Is MySQL?

    4. What’s in Store

  2. Chapter 2 Creating and Populating a Database

    1. Creating a MySQL Database

    2. Using the mysql Command-Line Tool

    3. MySQL Data Types

    4. Table Creation

    5. Populating and Modifying Tables

    6. When Good Statements Go Bad

    7. The Bank Schema

  3. Chapter 3 Query Primer

    1. Query Mechanics

    2. Query Clauses

    3. The select Clause

    4. The from Clause

    5. The where Clause

    6. The group by and having Clauses

    7. The order by Clause

    8. Test Your Knowledge

  4. Chapter 4 Filtering

    1. Condition Evaluation

    2. Building a Condition

    3. Condition Types

    4. Null: That Four-Letter Word

    5. Test Your Knowledge

  5. Chapter 5 Querying Multiple Tables

    1. What Is a Join?

    2. Joining Three or More Tables

    3. Self-Joins

    4. Equi-Joins Versus Non-Equi-Joins

    5. Join Conditions Versus Filter Conditions

    6. Test Your Knowledge

  6. Chapter 6 Working with Sets

    1. Set Theory Primer

    2. Set Theory in Practice

    3. Set Operators

    4. Set Operation Rules

    5. Test Your Knowledge

  7. Chapter 7 Data Generation, Conversion, and Manipulation

    1. Working with String Data

    2. Working with Numeric Data

    3. Working with Temporal Data

    4. Conversion Functions

    5. Test Your Knowledge

  8. Chapter 8 Grouping and Aggregates

    1. Grouping Concepts

    2. Aggregate Functions

    3. Generating Groups

    4. Group Filter Conditions

    5. Test Your Knowledge

  9. Chapter 9 Subqueries

    1. What Is a Subquery?

    2. Subquery Types

    3. Noncorrelated Subqueries

    4. Correlated Subqueries

    5. When to Use Subqueries

    6. Subquery Wrap-up

    7. Test Your Knowledge

  10. Chapter 10 Joins Revisited

    1. Outer Joins

    2. Cross Joins

    3. Natural Joins

    4. Test Your Knowledge

  11. Chapter 11 Conditional Logic

    1. What Is Conditional Logic?

    2. The Case Expression

    3. Case Expression Examples

    4. Test Your Knowledge

  12. Chapter 12 Transactions

    1. Multiuser Databases

    2. What Is a Transaction?

    3. Test Your Knowledge

  13. Chapter 13 Indexes and Constraints

    1. Indexes

    2. Constraints

    3. Test Your Knowledge

  14. Chapter 14 Views

    1. What Are Views?

    2. Why Use Views?

    3. Updatable Views

    4. Test Your Knowledge

  15. Chapter 15 Metadata

    1. Data About Data

    2. Information_Schema

    3. Working with Metadata

    4. Test Your Knowledge

  1. Appendix ER Diagram for Example Database

  2. Appendix MySQL Extensions to the SQL Language

    1. Extensions to the select Statement

    2. Combination Insert/Update Statements

    3. Ordered Updates and Deletes

    4. Multitable Updates and Deletes

  3. Appendix Solutions to Exercises

  4. Colophon

View Full Table of Contents
Product Details
Title:
Learning SQL, Second Edition
By:
Alan Beaulieu
Publisher:
O'Reilly Media
Formats:
  • Print
  • Ebook
  • Safari Books Online
Print Release:
April 2009
Ebook Release:
April 2009
Pages:
336
Print ISBN:
978-0-596-52083-0
| ISBN 10:
0-596-52083-2
Ebook ISBN:
978-0-596-80219-6
| ISBN 10:
0-596-80219-6
Customer Reviews
About the Author
  1. Alan Beaulieu

    Alan Beaulieu has been designing, building, and implementing custom database applications for over 13 years. He currently runs his own consulting company that specializes in designing Oracle databases and supporting services in the fields of Financial Services and Telecommunications. In building large databases for both OLTP and OLAP environments, Alan utilizes such Oracle features as Parallel Query, Partitioning, and Parallel Server. Alan has a Bachelor of Science degree in Operations Research from the Cornell University School of Engineering. He lives in Massachusetts with his wife and two daughters and can be reached at albeau_mosql@yahoo.com.

    View Alan Beaulieu's full profile page.

Colophon
The animal on the cover of Learning SQL, Second Edition, is an Andean marsupial tree frog (Gastrotheca riobambae). As its name suggests, this crepuscular and nocturnal frog is native to the western slopes of the Andes mountains and is widely distributed from the Riobamba basin to Ibarra in the north.

During courtship, the male calls ("wraaack-ack-ack") to attract a female. If a gravid female is attracted to him, he climbs onto her back and performs a common frog mating hold called the nuptial amplexus. As the eggs emerge from the female's cloaca, the male catches the eggs with his feet and fertilizes them while maneuvering them into a pouch on the female's back. A female may incubate an average of 130 eggs, and development in the pouch lasts between 60 and 120 days. During incubation, swelling becomes visible, and lumps appear beneath the skin on the female's back. When the tadpoles emerge from the pouch, the female tree frog deposits them into the water. Within two or three months the tadpoles metamorphose into froglets, and at seven months they are ready to mate ("wraaaack-ack-ack").Both the male and female tree frog have expanded digital discs on their fingers and toes that help them climb vertical surfaces such as trees. Adult males reach 2 inches in length, while females reach 2.5 inches. Sometimes they are green, sometimes brown, and sometimes a combination of green and brown. The color of the juveniles may change from brown to green as they grow.
  • Book cover of Learning SQL