Book
SQL Jissen Nyumon (A Practical Introduction to SQL)
Writing Fast, Easy-to-Understand Queries
Mick
Summary
A Japanese-language guide to writing good SQL by Mick. SQL is a language specialized for manipulating data and lets you work with it flexibly, but because it follows its own distinct logic, not understanding that logic correctly produces SQL that is hard to read and that performs poorly. The book explains good and bad ways of writing the operations performed routinely: conditional branching, aggregation, loops, joins, and updates. Throughout, it has readers read the execution plan that shows how the database processes each query internally, aiming to build a felt understanding of why a given way of writing a query is more efficient, and why it improves readability and maintainability.
Target Readers
- Web application engineers who work with a database regularly, and database engineers
- Developers whose SQL has become hard to read or slow to run because they haven't fully grasped SQL's own distinct logic
- Readers who want to understand why a particular way of writing a query is more efficient, and why it improves readability and maintainability, by learning to read execution plans
Tags
Colophon
- Publisher
- Gijutsu-Hyohron
- ISBN
- 978-4774173016
- Published
- Apr 2015
- List price
- ¥2,838incl. taxMay differ from the actual selling price on Amazon
Get this book
* The link above is an advertisement via Amazon Associates.Related Books
Prerequisites
- Recommended
SQL, 2nd Edition
Working with Databases, Starting from Zero
Mick
Reason: After you can write correct SQL, the next lens is reading the execution plan (EXPLAIN) to understand why a query is slow. This book starts tuning from the execution plan, so reading it right after the basics grows you from 'can write SQL' to 'can write fast SQL'.
Next Books
- Recommended
Shippai kara Manabu RDB no Tadashii Arukikata (The Right Way to Work with RDBs, Learned from Failure)
Taketomo Sone
Reason: Once you study query tuning and index design, you see that many performance problems trace back to early schema and operational decisions. This Japanese book on RDB pitfalls covers operational anti-patterns—soft deletes, caching, idempotency—lifting your view above optimizing individual SQL statements.
- Recommended
SQL Performance Explained
Everything Developers Need to Know about SQL Performance
Markus Winand
Reason: After learning to read execution plans in the practical intro, dig deeper into the internal structure of indexes themselves with Winand's 'SQL Performance Explained'. Understanding index structure clarifies why a plan chooses a given access path, raising the resolution of your tuning.
- Related
Joe Celko's SQL for Smarties, 4th Edition
Advanced SQL Programming
Joe Celko
Reason: With a tuning foundation grounded in execution plans, Celko's advanced idioms land more deeply—you grasp not just the syntax but why a given form performs well. A supplementary path for re-examining declarative complex queries such as recursive CTEs from both expressiveness and performance.