SQL in 10 Minutes, Sams Teach Yourself

SQL in 10 Minutes, Sams Teach Yourself

by Ben Forta


View All Available Formats & Editions
Choose Expedited Shipping at checkout for guaranteed delivery by Thursday, April 25

Product Details

ISBN-13: 9780672336072
Publisher: Sams
Publication date: 11/08/2012
Series: Sams Teach Yourself Series
Pages: 288
Sales rank: 62,885
Product dimensions: 6.00(w) x 8.90(h) x 0.50(d)

About the Author

Ben Forta is Adobe Systems’ Director of Developer Relations and has more than 20 years of experience in the computer industry in product development, support, training, and product marketing. He is the author of the best-selling Sams Teach Yourself SQL in 10 Minutes, spinoff titles on MySQL and SQL Server T-SQL, ColdFusion Web Application Construction Kit and Advanced ColdFusion Application Development (both published by Adobe Press), Sams Teach Yourself Regular Expressions in 10 Minutes, as well as books on Flash, Java, Windows, and other subjects. He has extensive experience in database design and development, has implemented databases for several highly successful commercial software programs and websites, and is a frequent lecturer and columnist on Internet and database technologies.

Table of Contents

Sams Teach Yourself SQL in 10 Minutes, Fourth Edition

Understanding SQL

Database Basics

What Is SQL?

Try It Yourself

2 Retrieving Data

The SELECT Statement

Retrieving Individual Columns

Retrieving Multiple Columns

Retrieving All Columns

Retrieving Distinct Rows

Limiting Results

Using Comments

3 Sorting Retrieved Data

Sorting Data

Sorting by Multiple Columns

Sorting by Column Position

Specifying Sort Direction

4 Filtering Data

Using the WHERE Clause

The WHERE Clause Operators

5 Advanced Data Filtering

Combining WHERE Clauses

Using the IN Operator

Using the NOT Operator

6 Using Wildcard Filtering

Using the LIKE Operator

Tips for Using Wildcards

7 Creating Calculated Fields

Understanding Calculated Fields

Concatenating Fields

Performing Mathematical Calculations

8 Using Data Manipulation Functions

Understanding Functions

Using Functions

9 Summarizing Data

Using Aggregate Functions

Aggregates on Distinct Values

Combining Aggregate Functions

10 Grouping Data

Understanding Data Grouping

Creating Groups

Filtering Groups

Grouping and Sorting

SELECT Clause Ordering

11 Working with Subqueries

Understanding Subqueries

Filtering by Subquery

Using Subqueries as Calculated Fields

12 Joining Tables

Understanding Joins

Creating a Join

13 Creating Advanced Joins

Using Table Aliases

Using Different Join Types

Using Joins with Aggregate Functions

Using Joins and Join Conditions

14 Combining Queries

Understanding Combined Queries

Creating Combined Queries

15 Inserting Data

Understanding Data Insertion

Copying from One Table to Another

16 Updating and Deleting Data

Updating Data

Deleting Data

Guidelines for Updating and Deleting Data

17 Creating and Manipulating Tables

Creating Tables

Updating Tables

Deleting Tables

Renaming Tables

18 Using Views

Understanding Views

Creating Views

19 Working with Stored Procedures

Understanding Stored Procedures

Why to Use Stored Procedures

Executing Stored Procedures

Creating Stored Procedures

20 Managing Transaction Processing

Understanding Transaction Processing

Controlling Transactions

21 Using Cursors

Understanding Cursors

Working with Cursors

22 Understanding Advanced SQL Features

Understanding Constraints

Understanding Indexes

Understanding Triggers

Database Security

A Sample Table Scripts

Understanding the Sample Tables

Obtaining the Sample Tables

B Working in Popular Applications

Using Apache Open Office Base

Using Adobe ColdFusion

Using IBM DB2

Using MariaDB

Using Microsoft Access

Using Microsoft ASP

Using Microsoft ASP.NET

Using Microsoft Query

Using Microsoft SQL Server (including Microsoft SQL Server Express)

Using MySQL

Using Oracle

Using Oracle Express

Using PHP

Using PostgreSQL

Using SQLite

Configuring ODBC Data Sources

C SQL Statement Syntax














D Using SQL Datatypes

String Datatypes

Numeric Datatypes

Date and Time Datatypes

Binary Datatypes

E SQL Reserved Words


SQL is the most widely used database language. Whether you are an application developer, database administrator, Web application designer, or Microsoft Office user, a good working knowledge of SQL is an important part of interacting with databases.

There are lots of SQL books out there. Some are actually very good. But they all have one thing in common: For most users they teach just too much information. Instead of teaching SQL itself, most books teach everything from database design and normalization to relational database theory and administrative concerns. Although those are all important topics, they are not of interest to most of us who just need to learn SQL.

That is where this book comes in. Sams Teach Yourself SQL in 10 Minutes will teach you SQL, starting with simple data retrieval and working on to more complex topics including the use of joins, subqueries, and table constraints. You'll learn what you need to know methodically, systematically, and simply-in lessons that will each take 10 minutes or less to complete.

So turn to Lesson 1, and get to work. You'll be writing world-class SQL in no time at all.

Who is the Teach Yourself SQL book for?

This book is for you if:

  • You are new to SQL.
  • You want to quickly learn how to get the most out of SQL.
  • You want to do things quickly and easily in SQL without having to call someone for help.

Conventions Used in This Book

This book uses different typefaces to differentiate between code and regular English, and also to help you identify important concepts.

Text that you type and text that should appear on your screen is presented in monospace type.

It willlook like this to mimic the way text looks on your screen.

Placeholders for variables and expressions appear in monospace italic font You should replace the placeholder with the specific value it represents.

This arrow at the beginning of a line of code means that a single line of code is too long to fit on the printed page. Continue typing all characters after the as though they were part of the preceding line.

New Term icons provide clear definitions of new, essential terms. The term appears in italic.

The Input icon identifies code that you can type in yourself. It usually appears next to a listing.

The Output icon highlights the output produced by running a program. It usually appears after a listing.

The Analysis icon alerts you to the author's line-by-line analysis of a program.

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews

SQL in 10 Minutes, Sams Teach Yourself 4.7 out of 5 based on 0 ratings. 3 reviews.
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Good book for beginners. For anyone looking specifically to learn proprietary syntax, look to those books. I've read a lot of reviews about how this book isn't good to learn SQL server, but this book isn't about SQL server; it's about basic SQL fundamentals. There are free tutorials out on the web with interactive learning that outdoes this book. However, it's still a good touch and feel reference tool for those who prefer a hard copy.