This eBook includes the following formats, accessible from your Account page after purchase:
EPUB The open industry format known for its reflowable content and usability on supported mobile devices.
MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.
PDF The popular standard, used most often with the free Adobe® Reader® software.
This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.
Also available in other formats.
Register your product to gain access to bonus material or receive a coupon.
The #1 Easy, Common-Sense Guide to SQL Queries—Updated with More Advanced Techniques and Solutions
Foreword by Keith W. Hare, Vice Chair, USA SQL Standards Committee
SQL Queries for Mere Mortals has earned worldwide praise as the clearest, simplest tutorial on writing effective queries with the latest SQL standards and database applications. Now, author John L. Viescas has updated this hands-on classic with even more advanced and valuable techniques.
Step by step, Viescas guides you through creating reliable queries for virtually any current SQL-based database. He demystifies all aspects of SQL query writing, from simple data selection and filtering to joining multiple tables and modifying sets of data.
Building on the basics, Viescas shows how to solve challenging real-world problems, including applying multiple complex conditions on one table, performing sophisticated logical evaluations, and using unlinked tables to think “outside the box.”
In two brand-new chapters, you learn how to perform complex calculations on groups for sophisticated reporting, and how to partition data into windows for more flexible aggregation.
Practice all you want with downloadable sample databases for today’s versions of Microsoft Office Access, Microsoft SQL Server, and the open source MySQL and PostgreSQL databases. Whether you’re a DBA, developer, user, or student, there’s no better way to master SQL.
Part I: Relational Databases and SQL
Chapter 1: What Is Relational?
Chapter 2: Ensuring Your Database Structure Is Sound
Chapter 3: A Concise History of SQL
Part II: SQL Basics
Chapter 4: Creating a Simple Query
Chapter 5: Getting More Than Simple Columns
Chapter 6: Filtering Your Data
Part III: Working with Multiple Tables
Chapter 7: Thinking in Sets
Chapter 8: INNER JOINs
Chapter 9: OUTER JOINs
Chapter 10: UNIONs
Chapter 11: Subqueries
Part IV: Summarizing and Grouping Data
Chapter 12: Simple Totals
Chapter 13: Grouping Data
Chapter 14: Filtering Grouped Data
Part V: Modifying Sets of Data
Chapter 15: Updating Sets of Data
Chapter 16: Inserting Sets of Data
Chapter 17: Deleting Sets of Data
PART VI Introduction to Solving Tough Problems
Chapter 18 “NOT” And “AND” Problems
Chapter 19 Condition Testing
Chapter 20 Using Unlinked Data and “Driver” Tables
Chapter 21 Performing Complex Calculations on Groups
Chapter 22: More SQL Server Complex Problems to Solve
Appendix A: SQL Standard Diagrams
Appendix B: Schema for the Sample Databases
Appendix C: Date and Time Functions
Appendix D: Suggested Reading