Product Cover Image

Sams Teach Yourself SQL in 10 Minutes,CourseSmart eTextbook, 4th Edition

By Ben Forta

Published by Sams

Published Date: Oct 23, 2012

More Product Info

Description

Sams Teach Yourself SQL in 10 Minutes has established itself as the gold standard for introductory SQL books, offering a fast-paced accessible tutorial to the major themes and techniques involved in applying the SQL language. Forta's examples are clear and his writing style crisp and concise. As with earlier editions, this revision includes coverage of current versions of all major commercial SQL platform. New this time around is coverage of MySQL and PostgreSQL. All examples have been tested against each SQL platform, with incompatibilities or platform distinctives called out and explained. Step-by-step instructions walk readers through the most common questions, issues, and tasks... "Did You Know?" tips offer insider advice and shortcuts... "Watch Out!" alerts help them avoid problems. Sams Teach Yourself SQL in 10 Minutes will provide beginner and experienced users with fast at a glance tips pointing out helpful shortcuts and solutions, cautions to help avoid common SQL pitfalls, and is written in a clear easy to understand format. This edition has been updated to include:

  • New coverage of SQLite
  • Updated examples work with the latest versions of Oracle, SQL Server, MySQL, and PostgreSQL
  • New full-color SQL code listings help the beginner clearly see the elements and structure of the language

Table of Contents

Sams Teach Yourself SQL in 10 Minutes, Fourth Edition

1
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

ALTER TABLE

COMMIT

CREATE INDEX

CREATE PROCEDURE

CREATE TABLE

CREATE VIEW

DELETE

DROP

INSERT

INSERT SELECT

ROLLBACK

SELECT

UPDATE

D Using SQL Datatypes

String Datatypes

Numeric Datatypes

Date and Time Datatypes

Binary Datatypes

E SQL Reserved Words

Purchase Info ?

With CourseSmart eTextbooks and eResources, you save up to 60% off the price of new print textbooks, and can switch between studying online or offline to suit your needs.

Once you have purchased your eTextbooks and added them to your CourseSmart bookshelf, you can access them anytime, anywhere.

Buy Access

Sams Teach Yourself SQL in 10 Minutes,CourseSmart eTextbook, 4th Edition
Format: Safari Book

$14.99 | ISBN-13: 978-0-13-304811-7