Skip to content

SQL interview practice for analysts

Write SQL that survives the hidden test data.

Real interview screens check your query on data you never see. Practise the same way: real PostgreSQL in your browser, and every answer graded on hidden datasets full of ties, NULLs, empty groups and duplicates.

Questions
255
Hidden datasets
525
Patterns
19
Practice databases
10

Where people fail

The sample hides the traps.
The hidden data finds them.

Most practice sites check your answer against the one table you can see. Real screens run it again on data built to break it. These three mistakes pass most samples and fail most screens.

Ties

ROW_NUMBER vs RANK
row_number() over (
  partition by category
  order by revenue desc)

Two products tie for third place. ROW_NUMBER keeps one at random, so your top three is missing a row the moment the data has a tie.

Caught by hidden data

NULLs

NOT IN with a NULL
where campaign_id not in (
  select campaign_id
  from purchases)

One NULL in the subquery and NOT IN returns nothing at all. The sample has no NULL there. The hidden data does.

Caught by hidden data

Empty groups

Inner join drops them
from order_items oi
join products p
  on p.product_id = oi.product_id

A category with no sales should show 0. An inner join makes it vanish, and nothing on the sample tells you.

Caught by hidden data

How a check works

Run it. Check it. See exactly which rows are wrong.

  1. 1

    Query the sample

    Real tables, real types, instant results. Browse the schema, autocomplete column names, run with Ctrl + Enter.

  2. 2

    Check on hidden data

    Your query runs again on every hidden dataset in your browser. Rows are compared as a set, numbers with a fair rounding rule, order only when the question asks for it.

  3. 3

    See the diff, then the fix

    Missing rows in red, extra rows in amber, what the hidden data was testing, then hints, a worked solution and the wrong answers people usually write.

Mock interviews

A clock, three questions and no hints. Like the real thing.

Timed mocks pull fresh questions for your role, hide hints and solutions until you finish, then score every answer on hidden data with your time per question.

See the mock interviews

Pricing

Start free. Pay when you are ready to go all in.

Free

$0

No account needed. Practise right away.

  • 65 questions with hidden-data checks
  • Every pattern lesson and the dialect cheat sheet
  • One timed mock interview
  • Progress saved in this browser
Start free

Monthly

$19a month

Renews monthly. Cancel any time in two clicks.

  • Every question in the bank, each checked on hidden edge-case data
  • Hints, worked solutions and the common wrong answers for every question
  • Timed mock screens for analyst, product and analytics engineer roles
  • Progress synced across your devices
Best for an interview season

Interview pass

$49$29once for 3 months

Three months of full access. Pay once, nothing renews.

Launch pricefor the first 100 passes

Ends at 100 passes sold or on March 1, 2027, whichever comes first. Then the pass is $49.

  • Every question in the bank, each checked on hidden edge-case data
  • Hints, worked solutions and the common wrong answers for every question
  • Timed mock screens for analyst, product and analytics engineer roles
  • Progress synced across your devices

Questions people ask

Is it real PostgreSQL?

Yes. Your queries run on PostgreSQL 19 compiled to WebAssembly, inside your browser tab. Nothing to install, no server round trip, and no way to break the data: every query runs read-only and is rolled back.

What is hidden data?

Each question has a sample dataset you can see and query, plus two or more hidden datasets built to catch specific mistakes: ties, NULLs, empty groups, duplicate rows and dates on the boundary. Your answer has to be right on all of them, the way automated interview screens grade take-homes.

Are these questions from real company interviews?

No. Every question, dataset and solution here is written from scratch around the patterns interview screens test. Questions are tagged by pattern, role and difficulty, never by company.

My interview uses Snowflake or BigQuery. Does that matter?

The patterns are the same in every dialect. The dialect cheat sheet lists the few differences that come up in interviews, such as date functions, QUALIFY and integer division.

Do I need an account?

No. 65 questions, every lesson and one mock interview are free without signing up, and your progress is kept in your browser. Sign in with your email to keep progress across devices.

What do I get if I pay?

Every question with hints, worked solutions and the common wrong answers explained, all the timed mock interviews, and progress synced across devices. Monthly renews until you cancel. The interview pass is one payment for three months and never renews.

Your next screen has hidden data.
Practise against it.

Start with a free question