Publisher: Sams – April 1, 2004
This title is out of date, and has been replaced by Sams Teach Yourself SQL in 10 Minutes – Fourth Edition.
This book was born a few years ago out of necessity. I had been teaching and writing on SQL for a long time, but whenever I was asked to recommend a good book on SQL I found myself somewhat stuck. There are good SQL books out there, but most of them are oriented towards database administrators or developers working within a highly database and SQL-centric world. And as such, most of them are overkill – they tend to provide too much information instead of just what most of us need to know.
This book has a specific audience in mind and was designed to be very different from other offerings out there. Instead of being geared towards DBA’s, this book is designed for real-world developers who write in Visual Basic, C/C++, ColdFusion, ASP, .NET. Java, JSP, Perl, PHP, and any other language. Instead of being designed for folks who’s occupation is data manipulation, this book is oriented towards users of other client applications, Word users who need to mail-merge against a back end database, report writer users needing to extract information from corporate data stores, and anyone who needs to manipulate and interact with databases, but for whom database manipulation is not a full-time job.
It does not start with database fundamentals, normalization, relational database design, referential integrity, and security infrastructures. Yes, these issues are covered, but that is not the emphasis or the positioning, Rather, the book starts with the SQL SELECT statement, and then adds filtering, sorting, and so on. Table creation, working with different datatypes, implementing constraints, using stored procedures and triggers, and more are all introduced clearly and methodically in small bite size chucks. The emphasis on getting stuff done, and getting it done quickly helping you be productive as quickly as possible in whatever tool or environment you use.
This is the one of the best selling SQL books ever, and is used by individuals, organizations, and as courseware by academic institutions the world over (including Milwaukee School of Engineering (Milwaukee, WI), St. Mary’s University (San Antonio, TX), Massachusetts Institute of Technology (Cambridge, MA), Boise State University (Boise, ID), George Fox University (Newberg, OR), University of Denver (Denver, CO), Auburn University (Auburn, AL), University of Illinois at Urbana-Champaign (Champaign, IL), Harper College (Palatine, IL), Florida Gulf Coast University (Fort Myers, FL), Oregon Health & Science University (Portland, OR), Fort Lewis College (Durango, CO), Columbia College (Chicago, IL), Manatee Community College (Bradenton, FL), Central Connecticut State University (New Britain, CT), University of Massachusetts Boston (Boston, MA), Palm Beach Atlantic University (West Palm Beach, FL), North Dakota University System (Bismarck, ND), Morgan State University (Baltimore, MD), Florida International University (Miami, FL), Sam Houston State University (Huntsville, TX), Montgomery College (Montgomery County, MD), Louisiana Tech University (Ruston, LA), Baylor University (Waco, TX), and more).
This third edition provides additional examples and tips, adds coverage of several advanced topics, and contents content specific to IBM DB2, Microsoft Access, Microsoft SQL Server, MySQL, Oracle, PostgreSQL, and Sybase Adapative Server.
I hope you find that these objectives have been met, and I welcome your feedback. Enjoy.
- 1: Understanding SQL
- 2: Retrieving Data
- 3: Sorting Retrieved 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
- 17: Creating and Manipulating Tables
- 18: Using Views
- 19: Working with Stored Procedures
- 20: Using Transaction Processing
- 21: Using Cursors
- 22: Understanding Advanced SQL Features
- Appendix A: The Example Tables
- Appendix B: Working in Popular Applications
- Appendix C: SQL Statement Syntax
- Appendix D: SQL Datatypes
- Appendix E: SQL Reserved Words
ErrataThere is an errata available for this title.
- China (Chinese): Published by Turing Book
- France (French): Published by CampusPress / Pearson Education
- Korea (Korean): Published by Information Publishing Group
- Romania (Romanian): Published by Teora
- Russia (Russian): Published by Williams Publishing
- Sweden (Swedish): Published by pagina.se
- Sweden (Swedish): Published by pagina.se
The Example Tables describes the database tables used in the examples in this book. You may download database tables or creation scripts here:
- IBM DB2 SQL scripts
- Microsoft Access database
- Microsoft SQL Server SQL scripts
- MySQL SQL scripts
- OpenOffice Base database
- Oracle SQL scripts
- PostgreSQL SQL scripts
- Sybase Adaptive Server SQL scripts
Other Editions Of This Title
- Sams Teach Yourself SQL in 10 Minutes (Published September 1, 1999 by Sams)
- Sams Teach Yourself SQL in 10 Minutes – Second Edition (Published May 1, 2001 by Sams)
- Sams Teach Yourself SQL in 10 Minutes – Fourth Edition (Published November 4, 2012 by Sams)