Skip to content
Code by Pawpu

Engineering Lab

SQL Arena

Query a small in-browser dataset. No server and no real database — just SQL-style thinking.

Loading arena…

How the challenge works

  • The tables on the page are the whole database. Type a SQL-style statement.
  • The evaluator normalizes whitespace and case, then matches accepted statements for that challenge. It is not a full SQL engine.

Key concepts

Filter before you join in your head

Know which table owns the column. Status lives on orders; city lives on customers.

Paid is a predicate

Most revenue questions die if cancelled and unpaid rows leak in.

Common mistakes

  • Selecting * and hoping the arena will project for you.
  • Grouping without an aggregate, or aggregating without a group.

Interview tips

  • Read the expected shape: column names matter here.
  • Say the join key out loud before you type it.

Related challenges

Built by Al Beltran