What problem does it solve?
This Skill provides a comprehensive guide to writing production-grade SQL, addressing style, correctness, performance, and anti-pattern avoidance.
Core Features & Use Cases
- SQL Standards: Offers a dense reference for SQL style, correctness, performance, and anti-pattern avoidance.
- Mental Models: Provides mental models for writing efficient and readable SQL queries.
- Non-Negotiable Standards: Lists essential rules for writing SQL queries, such as explicit column lists, qualifying column references, and avoiding logic in the WHERE clause.
- Style Standards: Demonstrates good SQL practices with examples.
- Decision Rules: Offers guidelines for common SQL scenarios like deduplication, most recent record retrieval, and date comparisons.
- Common Mistakes: Identifies and explains common SQL mistakes and their correct alternatives.
- Vocabulary: Defines key SQL terms to enhance understanding.
Quick Start
Use the sql-standards skill to review and optimize your SQL queries for best practices.