"One of the most interesting books about SQL I've ever read. You won't find any boring lectures – only the essence of SQL and real examples."
— Jakub Romanowski, LearnSQL.com
“Practical SQL will take you from an absolute databases beginner towards becoming a database and SQL master. This book is one of those books that you feel like [you're] reading a novel, not a technical book. It uses an easy to follow and [understandable] approach that makes it easy to read for people from all backgrounds.”
— Sara A. Metwalli, Towards Data Science
"If you are a beginner, I’d highly recommend this book. It’s easy to understand, practical, and takes you from the basics to the more advanced stuff."
— Tom Corbin, "The 2024 Guide to Becoming a Data Engineer"
"Ever so slightly more fun and more engaging [than Learning SQL from O'Reilly]."
— Giles McMullen-Klein, "Python Programmer" on YouTube
A recommended SQL resource in "R for Data Science (2e)" by Hadley Wickham, Mine Çetinkaya-Rundel & Garrett Grolemund!
Whether you're new to SQL or looking to sharpen your skills, Practical SQL gives you the tools to explore, analyze, and tell stories with data. Author Anthony DeBarros guides you from the fundamentals — counting, sorting, and filtering — through advanced techniques in statistics, full-text search, and GIS, all using the free and widely-used PostgreSQL database.
The SQL syntax and concepts covered apply broadly to other database systems including MySQL, Oracle, and SQLite (note that Microsoft SQL Server uses a variant called T-SQL, which this book does not cover). Read more from No Starch Press or read an interview with the author (LearnSQL.com).
Each chapter ends with a Try It Yourself section with exercises to reinforce what you learned. Answers are provided with the book’s resources on GitHub.