What problem does it solve? Slow queries, missing indexes, and poorly designed schemas degrade application performance, and diagnosing them requires deep knowledge of execution plans, indexing strategies, and dialect-specific behavior across PostgreSQL, MySQL, SQL Server, and Oracle. ## Core Features & Use Cases - Query Optimization: Rewrites correlated subqueries into set-based operations, creates covering indexes, and interprets EXPLAIN ANALYZE output to eliminate sequential scans. - Schema Design: Applies normalization (1NF-3NF), constraints, foreign keys, soft deletes, audit trails, and temporal tables for robust database design. - Dialect Migration: Translates queries between PostgreSQL, MySQL, SQL Server, and Oracle, handling differences in pagination, UPSERT, JSON support, and recursive CTEs. - Use Case: A user's dashboard query takes 30 seconds. The skill analyzes the execution plan, identifies a sequential scan, rewrites the correlated subquery as an aggregation join, and adds a covering index to reach sub-100ms performance. ## Quick Start Ask the assistant to analyze why your SQL query is slow and optimize it with proper indexes and an execution plan review.