SQL Query Optimizer
Optimize this SQL query: [PASTE].
ClaudeCode & Tech
38 words · free to use
Optimize this SQL query: [PASTE]. Analyze the execution plan, identify missing indexes, rewrite inefficient joins, eliminate subqueries that can be CTEs, and reduce the result set as early as possible. Show before and after with expected performance improvement.
How to use this prompt
- Copy the prompt with the button above.
- Replace the parts in brackets with your own details: [PASTE].
- Paste it into Claude and send it. It also works in other AI chat tools.
- Not quite right? Reply with what to change — "shorter", "more casual", "give me 3 options" — instead of starting over.