SPECIAL OFFERS
Keep up with new releases and promotions.Sign up to hear from us.
Register your productto gain access to bonus material or receive a coupon.
Sams Teach Yourself SQL in 10 Minutes, Fourth Edition
New full-color code examples help you see how SQL statements are structured
Whether you're an application developer, database administrator, web application designer, mobile app developer, or Microsoft Office users, a good working knowledge of SQL is an important part of interacting with databases. AndSams Teach Yourself SQL in 10 Minutesoffers the straightforward, practical answers you need to help you do your job.
Expert trainer and popular author Ben Forta teaches you just the parts of SQL you need to know–starting with simple data retrieval and quickly going on to more complex topics including the use of joins, subqueries, stored procedures, cursors, triggers, and table constraints.
You'll learn methodically, systematically, and simply–in 22 short, quick lessons that will each take only 10 minutes or less to complete.
2 Retrieving Data
4 Filtering Data
5 Advanced Data Filtering
6 Using Wildcard Filtering
7 Creating Calculated Fields
8 Using Data Manipulation Functions
9 Summarizing Data
10 Grouping Data
11 Working with Subqueries
12 Joining Tables
13 Creating Advanced Joins
14 Combining Queries
15 Inserting Data
16 Updating and Deleting Data
创建和操纵Ta 17bles
18 Using Views
19 Working with Stored Procedures
20 Managing Transaction Processing
21 Using Cursors
22 Understanding Advanced SQL Features
应用程序endix A: Sample Table Scripts
应用程序endix B: Working in Popular Applications
应用程序endix C : SQL Statement Syntax
Retrieving Data Using the SQL SELECT Statement
Download the sample pages(includes Chapter 2 and Index)
Sams Teach Yourself SQL in 10 Minutes, Fourth Edition
1Understanding SQL
Database Basics
What Is SQL?
Try It Yourself
2Retrieving Data
选择也更t
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
使用WHERE子句
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
创建和操纵Ta 17bles
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
使用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 SQLReserved Words