Correct and Optimized SQL Query with Execution Plan
Turn a described requirement into a correct optimized SQL query, with execution-plan reasoning, suggested indexes, and performance alternatives, without inventing engine-specific functions.
Plus
Model: claude-sonnet-4-7
1,999 previews
0 uses
Knowledge: 2026-Q2
This prompt requires the plus plan
Upgrade plan
Your current plan: free
Turning a requested management report into a precise query, speeding up a slow production query, validating a complex aggregation query before relying on it.
#SQL#استعلامات#أداء#فهارس#قواعد بيانات
Built-in quality guards
Anti-hallucination
Never invent APIs, functions, or libraries
Format Check
Strict adherence to the requested structure
Code Completeness
No TODOs or stubs — output runs as-is
Security Check
OWASP Top 10 considered in code