SQL Analysis Planner
Translate a business question and schema into auditable SQL with explicit grain, assumptions, and checks.
Make it yours
Add your details and the prompt updates as you type. Or copy the reusable template to fill in later.
Why does each prompt ask different questions?
Each [PLACEHOLDER] in a prompt becomes a field. A meeting prompt may ask for notes; a learning prompt may ask for a topic. When you share your own prompt, you choose these placeholders. See an example →
Describe the answer or decision you need help with.
For example: PostgreSQL, SQLite, or MySQL.
Include table names, columns, relationships, and relevant data types.
Include the rules the result must follow and any exceptions.
Your prompt
The complete template, ready to reuse.
Free to copy. No account needed.
Try it in your AI tool
Choose a tool to copy this prompt and open a new tab. Paste it there to get started.
Your chosen service may require sign-in. Features and usage limits vary; choose a tool that supports the result you want.
Paste into your AI tool, run it, and review the result.
What to expect
A metric definition, assumptions, auditable CTE query, and validation checklist.
This describes the intended result. Review your output for accuracy and fit.
A little context goes a long way
- Fill in the details above, or replace any remaining [placeholders] after copying.
- Paste only the necessary schema.
- Run against a development or read replica first.
- Compare results with a known period before production use.
Make the result work for you
Use this as a starting point in your AI tool. Results vary by tool and context. Check the output, add what’s missing, and ask for a revision.
New to prompts? Start here