Skip to content
mentoor

Asking databases in plain English

For both

Text-to-SQL with chat assistants and data agents: describing the question, reading the query it wrote, checking results and keeping access read-only

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

You ask a chat assistant: "How many active customers did we have last month?" Why is this request risky even though the model writes valid SQL?

Choose one answer

Check yourself · 2 of 5

A query does FROM customers c INNER JOIN orders o ON o.customer_id = c.id. Which customers appear in the result?

Choose one answer

Check yourself · 3 of 5

A model writes a query that runs and returns numbers. What does that tell you?

Choose one answer

Check yourself · 4 of 5

An assistant reports October revenue of 412,000 EUR. The finance dashboard says 398,500 EUR. What is the right next step?

Choose one answer

Check yourself · 5 of 5

What is the most reliable way to stop an AI database assistant from deleting data?

Choose one answer

Topics

  1. Describing the question and the schema3 min read · Giving table and column names, business definitions such as what counts as an active customer, and the time window and time zone
  2. Reading joins, filters and aggregates4 min read · Reading generated SQL clause by clause: which tables are joined, which rows the filters keep and what each aggregate counts
  3. Where text-to-SQL goes wrong4 min read · Invented columns, the wrong one of two similar tables, ambiguous business terms and dialect differences; real schemas are far harder than demos
  4. Sanity-checking query results4 min read · Row counts, known totals, NULL handling, duplicates created by joins and comparison with a trusted dashboard number
  5. Read-only access and query limits4 min read · Read-only roles, row limits and timeouts, never running writes from a chat, sensitive columns and agents with database tools

Start here

110 questions · last verified 2026-12