Home > Store

Sams Teach Yourself SQL in 10 Minutes, 3rd Edition

Register your product to gain access to bonus material or receive a coupon.

Sams Teach Yourself SQL in 10 Minutes, 3rd Edition

Premium Website

  • Sorry, this book is no longer in print.
Not for Sale



  • NEW - Fully updated to reflect the latest versions of SQL used by every leading commercial platform, from Access to Oracle.
    • Teaches students techniques they will be able to utilize for many years to come.

  • NEW - Now also covers MySQL and PostgreSQL, the leading open source database solutions.
    • Enables students to learn SQL using increasingly popular databases that are available to them at no cost.

  • SQL organized into modular 10-minute lessons—Starts with the simplest SQL techniques, then gradually builds on those skills to introduce complex topics such as views and transactions.
    • Prepares students for whatever tasks theyll need to perform with SQL, while providing a firm foundation of key concepts and techniques they will constantly rely upon.

  • Examples tested in every leading SQL dialect—Sample code will work regardless of platform, with any differences or issues clearly explained.
    • Students can be confident that their SQL code will work regardless of the platform they are using.

  • Broad coverage of core SQL skills—Covers data retrieval, sorting, filtering, insertion, calculation, manipulation, summaries, grouping, subqueries, joins, table creation, and much more.
    • Gives students a single source for a wide range of techniques, from basic to expert-level.

  • Complete e-commerce database available for download—Companion Web site includes a fully populated Microsoft Access database that can be used for practice.
    • Gives students practice data files they can practice essential SQL techniques with.

  • By Ben Forta, one of the worlds most experienced authors—Authored by an expert who has helped millions of students and professionals master database and Web development technologies.
    • Gives students confidence that they are receiving information that is thorough, accurate, clear, and useful—and reflects the challenges they will actually face.


  • Copyright 2004
  • Edition: 3rd
  • Premium Website
  • ISBN-10: 0-672-32567-5
  • ISBN-13: 978-0-672-32567-0

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 is crisp and concise. As with earlier editions, this revision includes coverage of current versions of all major commercial SQL platforms. 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.

Sample Content

Online Sample Chapters

Managing Transaction Processing for SQL Database Integrity

Sorting Retrieved Data

Sorting Retrieved Data from SQL Databases

Sample Pages

Download the sample pages (includes Chapter 3 and Index)

Table of Contents


Lesson 1. Understanding SQL.

Database Basics. What Is SQL? Try It Yourself. Summary.

Lesson 2. Retrieving Data.

The SELECT Statement. Retrieving Individual Columns. Retrieving Multiple Columns. Retrieving All Columns. Summary.

Lesson 3. Sorting Retrieved Data.

Sorting Data. Sorting by Multiple Columns. Sorting by Column Position. Specifying Sort Direction. Summary.

Lesson 4. Filtering Data.

Using the WHERE Clause. The WHERE Clause Operators. Summary.

Lesson 5. Advanced Data Filtering.

Combining WHERE Clauses. Using the IN Operator. Using the NOT Operator. Summary.

Lesson 6. Using Wildcard Filtering.

Using the LIKE Operator. Tips for Using Wildcards. Summary.

Lesson 7. Creating Calculated Fields.

Understanding Calculated Fields. Concatenating Fields. Performing Mathematical Calculations. Summary.

Lesson 8. Using Data Manipulation Functions.

Understanding Functions. Using Functions. Summary.

Lesson 9. Summarizing Data.

Using Aggregate Functions. Aggregates on Distinct Values. Combining Aggregate Functions. Summary.

Lesson 10. Grouping Data.

Understanding Data Grouping. Creating Groups. Filtering Groups. Grouping and Sorting. SELECT Clause Ordering. Summary.

Lesson 11. Working with Subqueries.

Understanding Subqueries. Filtering by Subquery. Using Subqueries As Calculated Fields. Summary.

Lesson 12. Joining Tables.

Understanding Joins. Creating a Join. Summary.

Lesson 13. Creating Advanced Joins.

Using Table Aliases. Using Different Join Types. Using Joins with Aggregate Functions. Using Joins and Join Conditions. Summary.

Lesson 14. Combining Queries.

Understanding Combined Queries. Creating Combined Queries. Summary.

Lesson 15. Inserting Data.

Understanding Data Insertion. Copying from One Table to Another. Summary.

Lesson 16. Updating and Deleting Data.

Updating Data. Deleting Data. Guidelines for Updating and Deleting Data. Summary.

Lesson 17. Creating and Manipulating Tables.

Creating Tables. Updating Tables. Deleting Tables. Renaming Tables. Summary.

Lesson 18. Using Views.

Understanding Views. Creating Views. Summary.

Lesson 19. Working with Stored Procedures.

Understanding Stored Procedures. Why to Use Stored Procedures. Executing Stored Procedures. Creating Stored Procedures. Summary.

Lesson 20. Managing Transaction Processing.

Understanding Transaction Processing. Controlling Transactions. Summary.

Lesson 21. Using Cursors.

Understanding Cursors. Working with Cursors. Summary.

Lesson 22. Understanding Advanced SQL Features.

Understanding Constraints. Understanding Indexes. Understanding Triggers. Database Security. Summary.

Appendix A: Sample Table Scripts.

Understanding the Sample Tables. Obtaining the Sample Tables.

Appendix B: Working in Popular Applications.

Using Aqua Data Studio. Using DB2. Using Macromedia ColdFusion. Using Microsoft Access. Using Microsoft ASP. Using Microsoft ASP.NET. Using Microsoft Query. Using Microsoft SQL Server. Using MySQL. Using Oracle. Using PHP. Using PostgreSQL. Using Query Tool. Using Sybase. Configuring ODBC Data Sources.

Appendix C: SQL Statement Syntax.


Appendix D: Using SQL Datatypes.

String Datatypes. Numeric Datatypes. Date and Time Datatypes. Binary Datatypes.

Appendix E: SQL Reserved Words.



Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership