Vibe Engines
YouTube

Vibe Engines is free, interactive AI engineering & system design — runs in your browser. Pick a learning path

Handbook · AI-Era Careers

AI for Data Analysts.

Text-to-SQL lets anyone type a question and get a query; AI dashboard tools spin up charts on demand. So the mechanical half of analysis — writing SQL, building basic dashboards, pulling numbers — is getting cheap. What stays, and grows, is the thinking half: asking the right question, judging whether the data can be trusted, interpreting a result in business context, and defining what the metrics even mean so the self-serve answers are correct. This handbook is the practical path — what gets automated, what becomes valuable, and the strongest pivot, analytics engineering, the layer that AI querying makes more important, not less.

~15 min readanalysts & BI5 movespivot to analytics engineering
Written by an engineer, honest about a role under pressure from AI querying — not career-placement advice or a market promise. The aim is where to point your skills, and where they transfer.
01

What gets automated, what becomes valuable

The clean way to read it: AI automates producing a number and leaves you knowing which number to ask for, whether to trust it, and what it means. A confident wrong answer is now cheap to generate — catching it is the job. Move toward the right column.

Getting automated (AI does it)Getting valuable (own this)
Writing SQL from a question (text-to-SQL)Framing the right question from a vague business need
Building basic charts and dashboardsJudging data quality — is this number trustworthy?
Pulling standard metrics and routine reportsStatistical judgment — sample validity, correlation vs causation
Formatting and summarizing resultsInterpreting results in business context and driving a decision
Looking up how to compute somethingDefining what a metric means (the semantic layer)
—Modeling and testing trustworthy data (analytics engineering)

Text-to-SQL is only as good as the warehouse and the metric definitions underneath it — which is exactly the layer you can own. The role moves from producing queries to governing meaning and supplying judgment.

02

The new analyst stack — and the pivot

Level up by owning meaning and judgment, and set up the analytics-engineering pivot that AI querying makes more valuable.

1 — Own what the numbers mean (the semantic layer)

A text-to-SQL query over an ambiguous schema returns a confident number that may be the wrong metric entirely — “revenue” recognized or booked, net of refunds, in which timezone and fiscal calendar? The high-value work is defining each metric once, correctly, in a governed semantic layer so that self-serve and AI querying stay right. You are best placed to do this, because you know both the data and the questions. Owning the definitions makes every AI answer trustworthy — or exposes when it is not.

2 — Supply the judgment AI can't: trust, stats, interpretation

The analysis was never the SQL. It is knowing whether the data can be trusted, whether a sample generalizes, whether a correlation is causal, and what a result actually means for the business — and communicating that so it changes a decision. Those are exactly what a text-to-SQL tool skips, and they get more valuable as raw numbers get cheap. Invest in statistical literacy, data-quality instincts, and the storytelling that turns a chart into a decision.

3 — Pivot to analytics engineering, the escape hatch

The strongest concrete step up is analytics engineering — the modeling, testing, and transformation layer (dbt-style) that turns raw warehouse data into clean, tested, documented tables and defined metrics. It is the most natural pivot for an analyst because you already know the data and the business, and you add version-controlled transformations, data tests, and metric governance. It is durable, in demand, and it is precisely the layer AI querying makes more important, since a self-serve answer is only as trustworthy as the model beneath it.

03

Five moves you can start this week

Each builds value now and toward the pivot. The verify line is where your judgment lives.

1 · Define one metric properly, once

  1. Turn an ambiguous metric into a governed definition:
Take a metric everyone reports differently (e.g. "active user" or "revenue"). Write the single correct definition — the exact logic, the edge cases (refunds, timezones, filters), and the grain — and document it so self-serve and text-to-SQL compute it the same way every time.
You own: the meaning the AI cannot infer — the semantic-layer work that makes every downstream answer trustworthy, and the core of analytics engineering.

2 · Stress-test a text-to-SQL answer

  1. Verify before you trust the confident number:
Take an AI-generated query and answer and check it: does "revenue" mean what the stakeholder thinks, is the join grain right (does it double-count?), is the date filter and timezone correct, and does the number reconcile with a known-correct figure? Note where it is subtly wrong.
You own: catching the confident-wrong answer — a generated query that runs can still be answering the wrong question, and that judgment is the analysis.

3 · Turn a result into a decision

  1. Practice the interpretation and communication AI can't:
Take a finding and write the one-paragraph "so what": what it means for the business, how confident we should be, what could confound it, and what decision it argues for. Lead with the insight, not the chart.
You own: the judgment and communication that turn a number into an action — the part of the job that is entirely human and drives your value.

4 · Learn version-controlled transformations (dbt-style)

  1. Take the first concrete step toward analytics engineering:
Model one messy source into a clean, tested, documented table using a transformation tool (dbt-style): the SQL model, a couple of data tests (uniqueness, not-null, freshness), and a description. This is the analytics-engineering craft on top of the SQL you already know.
You own: the shift from querying to producing trustworthy data — the pivot skill that is in demand and that AI querying depends on.

5 · Sharpen statistical and data-quality judgment

  1. Deepen the reasoning AI reliably gets wrong:
On a real analysis, deliberately ask: is this sample representative, is this difference significant or noise, is this correlation plausibly causal, and what data-quality issue could be faking this result? Write down the caveats you'd stake your name on.
You own: the statistical and quality judgment that separates real insight from a plausible-looking artifact — exactly where confident AI output goes wrong.
04

The judgment exercise: spot the danger

Three moments where the analyst, not the tool, decides.

1. Text-to-SQL answers "what was revenue last month?" with a clean number the exec loves. Report it?

2. AI finds that users who use Feature X churn less, and suggests pushing everyone to Feature X. Recommend it?

3. Worried self-serve BI and text-to-SQL make your role redundant. Best career move?

05

Your role in three years — and a plan

In three years, routine querying and dashboarding are largely self-serve, and strong analysts have moved into owning metrics and interpretation or pivoted into analytics engineering. A concrete start toward either:

WeeksDo thisWhy
1–3Define one contested metric properly and document it; stress-test a text-to-SQL answer against itOwning meaning makes AI answers trustworthy — your moat
4–6Practice turning findings into decisions (the one-paragraph "so what") and stating caveats you'd stake your name onInterpretation and communication are entirely human value
7–9Model one messy source into a clean, tested table with a transformation toolThe first real step into analytics engineering
10–12Sharpen statistical judgment (significance, causation, sampling) on a real analysisExactly where confident AI output goes wrong — and you catch it

The through-line: let AI write the SQL, and get deeper in the meaning, the judgment, and the trustworthy-data layer it cannot own. Analytics engineering is the most natural, durable destination — and it builds directly on what you already know. See the AI-Era Data Engineer for the adjacent data-side view.

The picture

The picture: the same question, two paths to a number

business question text-to-SQL ambiguous schema confident guess which revenue? which tz? text-to-SQL governed metric tested models your layer: meaning + tests
Text-to-SQL is the same box on both paths. What differs is what it queries. Over raw tables it has to guess what “revenue” means, and it guesses fluently. Over a governed metric and tested models, the guess has already been made once, correctly, by someone who knows the business. That bottom layer is the semantic-layer and analytics-engineering work this page recommends.
By the numbers

Worked example: the join that more than doubles revenue

Move 2 asks “is the join grain right?”. Here is what a wrong grain does, with illustrative data. Three orders total $400: order 1 is $120, order 2 is $80, order 3 is $200. A payments table has one row per instalment: order 1 was paid in two parts, order 2 in one, order 3 in three. A generated query joins them to filter on payment status, then runs SUM(o.amount).

Joined roworder_idorders.amountPaymentRunning SUM
11$1201 of 2$120
21$1202 of 2$240
32$801 of 1$320
43$2001 of 3$520
53$2002 of 3$720
63$2003 of 3$920

The query runs, returns one clean number and is 2.3× too high, because the join changed the grain from one row per order to one row per payment. Each order amount is repeated once per instalment. Nothing errors, and nothing looks odd unless you reconcile it against a known figure. The fix is to aggregate payments to one row per order before joining, or to filter with EXISTS instead of a join. SUM(DISTINCT o.amount) looks like a fix but is not: two different orders that both cost $80 would be counted once.

Trade-offs

Trade-offs: where a metric’s logic should live

Read Time as how fast you get a first answer, and Space as what it costs to keep that answer right.

CaseTimeSpaceWhy
Ad-hoc query, rewritten each timeFastest to startEvery copy can driftFine for a one-off question. Two analysts asking it will get two numbers.
Calculated field in a dashboardFastLocked inside one toolOther tools and text-to-SQL cannot see it, so they redefine it.
Tested transformation model (dbt-style)Slower: code, tests, reviewLow drift, version-controlledThe grain is fixed once and checked on every run.
Semantic-layer metricSlowest to set upLowest: one definition everywhereSelf-serve, dashboards and text-to-SQL all compute the same thing.

The first two rows feel cheap because their cost arrives later, in a meeting where two dashboards disagree. The last two rows are the analytics-engineering pivot. Text-to-SQL makes them more valuable, because it multiplies the number of people asking questions of whatever definitions exist.

Watch for

Common mistakes analysts make with AI-generated queries

  • Reading the result instead of the query

    Check JOIN and WHERE before you look at the number. The grain and the filters decide whether the answer is right, and the example above shows a wrong grain giving a believable total.

  • Reconciling against nothing

    A number with no reference point cannot be checked. Keep a few known-correct figures (a finance-reported month, a past dashboard total) and test every new query against one of them first.

  • Date boundaries in the wrong timezone

    An order placed at 23:30 on 31 March in New York is 03:30 on 1 April in UTC. A “last month” filter written in UTC moves late-evening orders into the next month. Name the timezone in the metric definition.

  • Forgetting what NULL does

    COUNT(col) skips NULLs while COUNT(*) does not, and AVG ignores NULL rows entirely. A generated query can switch between them without comment and change the answer.

  • Trusting data tests to check meaning

    Uniqueness, not-null and freshness tests check the shape of a table. They all pass on a model that computes the wrong definition of revenue. Add a reconciliation test against a known total.

In the wild

Where this shows up in production and in interviews

  • Self-serve and text-to-SQL rollouts

    When a company opens its warehouse to natural-language questions, the first wave of wrong answers comes from ambiguous schemas, not bad SQL. The fix is the bottom path in the picture.

  • Metric reviews

    The meeting where two dashboards show two revenue numbers is where a governed definition earns its keep. Whoever wrote the definition is the person in the room who can settle it.

  • Experiments

    The Feature X trap from the exercise ends in an A/B test. Being able to say “this is correlation; here is the test that would show cause” turns an AI-suggested action into a decision someone can defend.

  • Analyst and analytics-engineer interviews

    Fan-out joins, grain and NULL behaviour are favourite SQL interview topics because they separate people who write queries from people who check them. Walk through the table above out loud and you have the answer.

Frequently asked

Quick answers

Will AI replace data analysts?

It automates writing SQL and basic dashboards, not asking the right question, judging trust, interpreting results, or defining what metrics mean. Those get more valuable as raw numbers get cheap.

Does text-to-SQL make the job obsolete?

No — it makes querying self-serve while raising the value of the semantic layer and the judgment that make a query trustworthy. A text-to-SQL answer is only as good as the model underneath.

What should I pivot into?

Analytics engineering — the modeling, testing, and metric-governance layer (dbt-style) that produces trustworthy data. It builds on your analyst skills, is in demand, and AI querying makes it more important.

Where should I start?

Move 1 — define one contested metric properly and document it, then check a text-to-SQL answer against it. Immediately useful, and it is the core of the semantic-layer work.

Finished this one? 0 / 209 Handbooks done
NextAI for Technical Writers Next on the “AI for the rest of the product team” ladder · rung 7 of 11

This idea in other formats

Explore the topic

See this alongside everything else on the same subject — handbooks, system designs, challenges and tools, in one place.