Skip to content
Try this course

Free course template · Global

AI-assisted SQL and analysis: Checking what it generates

A ready-made course, live deck and three surveys for data analysts. 40 minutes, 6 lessons, 10-question final check. Last reviewed 4 December 2026; not legal advice.

Try the courseClaim the template

Play a game from the course

AI-assisted SQL and analysis: Checking what it generates: try 3 questions

Three questions from this course. Pick an answer, then see why.

Play the game

Game not loading? Open it in a new tab (opens in a new tab)

Three pieces that work together

Learners sign in, so every finish and score is recorded. 4 fields to fill in with your details.

Claim the template

6 lessons, about 40 minutes

Minutes are an estimate.

  • Lesson 1: Why ’it ran’ is not ’it is right’ · 6 min

    Before you begin · Revenue per customer

  • Lesson 2: Brief the assistant well · 8 min

    Four things to include · What stays out · Safe to paste?

  • Lesson 3: Review the query like a colleague's pull request · 8 min

    Six checks · Spot the flaw · Looks fine or needs a fix?

  • Lesson 4: Test the result before you share it · 6 min

    Sanity checks · Mei Lin's churn rate

  • Lesson 5: Keep it repeatable · 6 min

    What to record · A reused query

  • Lesson 6: Final assessment · 6 min

    Final assessment · Course complete

Claim the template

Inside this course

Taken from the course itself.

By the end, learners can

  • Explain why a query that runs without error can still answer the wrong question, and name the three most common silent failures: wrong join, wrong grain and wrong filter
  • Write a prompt that gives an AI assistant the schema, the business definition and the shape of the answer, without pasting row-level personal data
  • Review a generated query line by line: tables and joins, grain, filters, nulls, dates and aggregation
  • Test a result with sanity checks before you share it
  • Record what the AI produced, what you changed and what you checked, so another analyst can repeat the work

Sample questions, with answers

  1. A result looks plausible. What do you check first?

    • Does the grain of the output match the question?
    • How fast the query ran
    • How long the explanation is
    • Whether the column names look neat

    Answer: Does the grain of the output match the question? A tidy table can still be one row per the wrong thing.

    Lesson 2: Brief the assistant well

  2. Why does a half-open date range (>= start and < next start) help?

    • It runs faster
    • It has no gaps or overlaps at period boundaries
    • It hides nulls
    • It sorts the rows

    Answer: It has no gaps or overlaps at period boundaries. Each moment falls in exactly one period.

    Lesson 4: Test the result before you share it

  3. Your figure is far from last quarter's dashboard. What is the best next step?

    • Assume the dashboard is wrong
    • Round the number
    • Hide the comparison
    • Reconcile one small segment by hand

    Answer: Reconcile one small segment by hand. A small segment you can check by hand shows where the two differ.

    Lesson 5: Keep it repeatable

A scenario from "Test the result before you share it"

Mei Lin has a generated churn query. The churn rate comes out at 41%, but last quarter's dashboard said 6%.

Best response: Check the grain and the definition of ’churned’, then reconcile one segment by hand.

Weaker responses: Trust it because the assistant explained it confidently; Send it with a caveat.

Common questions

Yes. Claiming the template and editing it are free.

Yes. The course is self-paced and online, and the live deck lets you add a live session in the room or online.

At onboarding or as continuing professional development, with a yearly refresher (best practice).

Data analysts, analytics engineers and BI developers.

Record completion in your own LMS or record system, so you can show who finished the course and when.

Your own details, each highlighted inside the course:
  • Link to your live session deck
  • Link to the self-paced course
  • What may go into an AI tool is at
Then edit anything else you like: wording, scenarios, your logo.
Visit the help centre (opens in a new tab)