日本語版
SQL and Query Mastery
SQL is the universal language of data manipulation. This skill systematically covers everything from basic syntax to advanced window functions, query optimization, execution plan analysis, and database-specific features.
Target Audience
- Engineers who want to learn SQL systematically
- Developers looking to optimize query performance
- Those involved in database design and operations
Prerequisites
- Foundational understanding of relational databases
- Basic SQL knowledge (SELECT/INSERT/UPDATE/DELETE)
Study Guide
00-basics — SQL Fundamentals
01-advanced — Advanced SQL
02-optimization — Query Optimization
03-specific — Database-Specific Features
Quick Reference
SQL Performance Checklist:
✓ Verify execution plans with EXPLAIN ANALYZE
✓ Create appropriate indexes
✓ Avoid SELECT *; query only the columns you need
✓ Resolve N+1 queries with JOINs
✓ For large datasets, use cursor-based pagination instead of LIMIT/OFFSET
✓ Perform aggregations on the database side
References
- PostgreSQL. "Documentation." postgresql.org/docs, 2024.
- Winand, M. "SQL Performance Explained." use-the-index-luke.com, 2012.
- Molinaro, A. "SQL Cookbook." O'Reilly, 2020.