6 ChatGPT Prompts for Data Analysts You Can Copy and Paste

Independently researched from published sources. Last researched: April 2026. Results vary: this article teaches AI skills, not employment outcomes. See Terms and Privacy.

Most people type 'write me a SQL query' into ChatGPT and get back something that technically runs but misses half the edge cases. The fix isn't a better model. It's a better prompt. One that tells the model your database engine, your schema, and exactly what shape the output should take.

The six prompts below come from independently researched phrasing built for the work Data Analysts actually do every week: writing queries, investigating anomalies, summarizing findings for people who won't read past the first paragraph. Each prompt has placeholders in brackets. Replace those with your real details, paste the whole thing in, and you'll get a usable first draft instead of a generic one.

Pick the prompt that matches whatever is on your plate right now. You can have a solid first draft of a SQL query or an executive summary in the next ten minutes.

1. SQL Query Generator (Business Question to Production Query)

Translating a stakeholder's plain-English question into clean SQL is probably the most repeated task in data analysis. This prompt forces the model to use CTEs for readability, handle NULLs, optimize for your specific database engine, and output business-friendly column names. That's the difference between a query you need to rewrite and one you can actually run.

copy and paste this prompt
Act as a Senior Analytics Engineer working in [BigQuery/Snowflake/PostgreSQL/Redshift]. Here are the relevant tables and relationships: [PASTE YOUR SCHEMA, table names, column names, data types, and how tables join] Business question (verbatim from the stakeholder): "[PASTE THE EXACT QUESTION]" Generate a SQL query that: 1. Handles NULLs appropriately 2. Uses CTEs for readability 3. Includes comments explaining non-obvious logic 4. Outputs business-friendly column names (no snake_case in the final SELECT) 5. Is optimized for the specified database engine After the query, explain in 2-3 sentences what the query does and any assumptions you made.

How to use it: Replace the database engine, paste your table schema (column names, types, join relationships), and drop in the stakeholder's question verbatim. Review the query's NULL handling and stated assumptions before running it against production.

Source

2. Stakeholder Question to Analytical Framework

Stakeholders rarely ask the precise analytical question they need answered. 'Why did revenue drop?' could mean five different analyses depending on context. This prompt makes you structure your thinking before touching SQL: restate the question precisely, list hypotheses, identify the right segmentation, plan the deliverable format. It catches scope creep before you've spent three hours on the wrong cut of data.

copy and paste this prompt
A stakeholder just asked: "[PASTE THEIR EXACT QUESTION, e.g., 'Why did revenue drop last month?' or 'Which customers should we focus on?']" Their role: [TITLE/DEPARTMENT] Context: [ANY ADDITIONAL CONTEXT ABOUT WHY THEY'RE ASKING] Before writing a single query, help me think through: 1. Restate their question as 1-3 precise analytical questions 2. What data would I need? (specific tables, metrics, dimensions) 3. What time period makes sense? 4. What segmentation would reveal the most insight? 5. What are the most likely answers? (hypotheses to test) 6. What would I need to show to make the answer actionable? 7. How should I present this? (table, chart, one-pager, Slack message) 8. What follow-up questions will they probably ask? The goal is to deliver an answer that resolves their actual need, not just the literal question they asked.

How to use it: Paste the stakeholder's exact words, their role, and any context about why they're asking. Use the output as your analysis plan before writing a single query.

Source

3. Executive Summary Writer (Analysis to Action)

You finished the analysis. Now you need to communicate it to someone who will spend 90 seconds reading. This prompt structures raw findings into a bottom-line-first format with specific numbers, recommended actions, and risks. It forces the 'so what' to the top, which is exactly where most analyst write-ups fall apart.

copy and paste this prompt
Act as a Business Data Analyst and Executive Communications Specialist. My analysis notes and findings: [PASTE YOUR RAW BULLETS, NUMBERS, AND OBSERVATIONS] Write a one-page executive summary structured as: 1. Bottom line (2-3 sentences), what happened, so what, now what 2. Key findings (3-5 bullets), each with a specific number and business impact 3. Recommended actions (3 bullets), specific, actionable, with owners and deadlines where possible 4. Risks and caveats (2 bullets), what could make these findings wrong 5. Next steps, what analysis should follow this one Keep it under 300 words total. My audience is [C-SUITE / VP / DEPARTMENT HEAD] who will spend 90 seconds reading this. Lead with the 'so what', not the methodology.

How to use it: Paste your raw analysis bullets, numbers, and observations. Specify your audience (C-suite, VP, department head). Edit the output for accuracy, since the model may reframe your numbers in ways that shift meaning.

Source

Finding these useful? The full guide has 17 of them, plus tool reviews and a 30-day plan. Get it for $29.

4. Anomaly Investigation Report

A metric just spiked or dropped and your Slack is blowing up. This prompt generates a structured investigation checklist, diagnostic SQL queries for your specific schema, and a stakeholder communication draft under 100 words. It starts with data issues before business causes, which is the right order: anomalies often turn out to be pipeline problems rather than market shifts.

copy and paste this prompt
A metric just spiked or dropped unexpectedly and I need to investigate. The anomaly: - Metric: [NAME] - Normal range: [TYPICAL VALUES] - Current value: [THE ANOMALOUS VALUE] - When it started: [DATE/TIME] - Context: [ANYTHING ELSE YOU KNOW, recent deploys, marketing campaigns, data pipeline changes] Help me investigate by generating: 1. A structured investigation checklist (data issues first, then business causes) 2. SQL queries to diagnose common causes: - Check for data pipeline delays or gaps - Check for NULL spikes or schema changes - Break down the metric by key dimensions to isolate where the change is coming from - Compare to the same period last week and last month 3. A one-paragraph report template: what happened, the impact, the most likely cause, and recommended action Assume I'm using [DATABASE] with tables: [PASTE RELEVANT SCHEMA].

How to use it: Fill in the metric name, its normal range, the anomalous value, when it started, and your database schema. Run the diagnostic queries it generates in order, crossing off causes as you go.

Source

5. Chart Description and Insight Extractor

You built a chart. Someone in a meeting has 30 seconds to absorb it. This prompt generates a title that communicates the insight, not just what the axes show, plus a plain-English description for non-technical audiences and a prebuilt counterargument for the skeptic in the room. It also suggests the next analysis, which saves you the follow-up question.

copy and paste this prompt
I have a [CHART TYPE: e.g., line chart, bar chart, scatter plot, heatmap] showing [DESCRIBE WHAT IT VISUALIZES]. Here's the underlying data: [PASTE DATA OR KEY DATA POINTS] Provide: 1. A chart title that communicates the key insight (not just what the chart shows, what it MEANS) 2. A 2-3 sentence description suitable for a slide deck or report that a non-technical executive could understand 3. The single most important takeaway 4. One counterargument or caveat the audience might raise, and how to address it 5. A recommended next analysis to go deeper Write for someone who has 30 seconds to absorb this chart in a meeting.

How to use it: Describe your chart type, what it visualizes, and paste the underlying data or key data points. Use the generated title and description directly in your slide deck or report.

Source

6. A/B Test Result Interpreter

Most A/B test summaries either over-claim significance or bury an inconclusive result in optimistic language. This prompt asks for sample sizes, duration, and metric values, then checks statistical significance, practical effect size, and common problems like sample ratio mismatch. It ends with a plain-English summary you can send to a product manager who doesn't speak statistics.

copy and paste this prompt
Analyze this A/B test and help me decide what to do. Test details: - Hypothesis: [WHAT WE EXPECTED] - Control: [DESCRIPTION] - Variant: [DESCRIPTION] - Sample sizes: Control = [N], Variant = [N] - Duration: [DAYS] - Primary metric: [METRIC AND VALUES FOR EACH GROUP] - Secondary metrics: [LIST WITH VALUES] Analyze: 1. Is the sample size sufficient? (Post-hoc power analysis) 2. Is the result statistically significant? (p-value, confidence interval) 3. What is the practical effect size? (Is it big enough to matter for the business?) 4. Are there any signs of problems? (Sample ratio mismatch, novelty effects, segment differences) 5. My recommendation: Ship it, kill it, or extend the test, and why 6. Plain-English summary I can send to the product manager who doesn't know statistics Be honest, if the result is inconclusive, say so. Don't force a narrative.

How to use it: Fill in the hypothesis, control and variant descriptions, sample sizes, test duration, and metric values for each group. Verify the statistical calculations independently before making the final call.

Source

Common questions

It can, but quality depends on what you give it. If you paste your actual schema and specify your database engine, the output is usually runnable. The SQL Query Generator prompt is structured to produce CTE-based, commented, NULL-aware queries on the first try. Always review the output before running it against production data.
Yes. These are plain-text instructions with structured requirements. They work in any large language model that accepts long-form input. The structure is what produces better results than casual questions: a defined role, specific context, and numbered output requirements. The tool matters less than the prompt.
These six are a sample from a broader set. The full Ahead at Work guide for Data Analysts covers additional prompts for data cleaning pipelines, metric definitions, dashboard specs, ETL documentation, cohort analysis, automated reporting, and data quality investigation. It costs $29 and spans the complete workflow from data prep through stakeholder communication.
These tools are good at generating first drafts of SQL, summaries, and investigation frameworks. They are not good at knowing which question matters, whether the data source is trustworthy, or what the business actually needs to hear. Every prompt above still requires you to supply the schema, the context, and the judgment call.

This is the free version

The full Data Analyst guide goes much further: 17 copy-paste prompts, honest reviews of 13 tools with current prices, a dos and don'ts chapter, and a 30-day plan to put it all into practice.

Get the full guide. $29

One-time purchase. Instant download. Or read more about what's inside.

More free data analyst resources