Prompt · Intermediate · 8 min
SQL query from a question
Write a correct SQL query for a business question against a described schema, with a check for the result.
- ChatGPT
- Claude
- Any assistant
- data
- sql
- drafting
Inside this prompt
- Write a correct SQL query for a business question against a described schema, with a check for the result. Written for data analysis work: the context, steps and output format are fixed so results come back in the same shape every time.
- Fill in: {{question}}, {{schema}}, {{dialect}}, {{definitions}}
- Variables
- 4
The full prompt opens with a membership that covers Data Analysis Prompts.
Sign in if you already subscribe.
Sign in
