EARTH WEEK
Now through April 22, save up to 70% on digital learning resources. Learn more.
Register your product to gain access to bonus material or receive a coupon.
This is the Rough Cut version of the printed book.
Effective SQL brings together the hands-on solutions and practical insights you need to solve a wide range of complex problems with SQL, and to design databases that make it far easier to manage data in the future. Leveraging the proven format of the best-selling Addison-Wesley Effective Software Development Series, it focuses on providing clear, practical explanations, expert tips, and plenty of realistic examples--all in full color.
Drawing on their immense experience as consultants and instructors, three world-class database experts identify specific challenges and distill each solution into five pages or fewer. Throughout, they provide practical SQL code designed for all leading platforms. Sample code includes specific examples for IBM DB2, Microsoft Access, Microsoft SQL Server, MySQL, Oracle Database, and PostgreSQL, wherever these vary or permit you to achieve your goal more efficiently.
Going beyond mere syntax, the authors also show how to avoid poor database design that makes it difficult to write effective SQL, how to improve suboptimal designs, and how to work around designs you can't change. You'll also find detailed sections on filtering and finding data, aggregation, subqueries, and metadata, as well as specific solutions for everything from listing products to scheduling events and defining data hierarchies. Simply put, if you already know the basics of SQL, Effective SQL will help you become a world-class SQL problem-solver.
Introduction
Chapter 1: Data Model Design
Chapter 2: Programmability and Index Design
Chapter 3: When You Can’t Change the Design
Chapter 4: Filtering and Finding Data
Chapter 5: Aggregation
Chapter 6: Subqueries
Chapter 7: Analyzing and Getting Metadata
Chapter 8: Cartesian Products
Chapter 9: Tally Tables
Chapter 10: Modeling Hierarchical Data
Appendix: Date and Time Types, Operations, and Functions