T
Tech Town
Log InSign Up Free
Home SQL Python Power BI Snowflake Gen AI Practice Problems Blog
Real SQL Engine, Right In Your Browser

SQL Interview Questions

{{ problemCount }} curated problems covering the patterns asked most at real interviews — joins, aggregation, window functions, subqueries and more. Write and run real SQL, right here.

{{ problemListLabel }}
{{ current.difficulty }} {{ current.category }}

{{ current.title }}

{{ current.desc }}

Schema
Table: {{ t.name }}
{{ t.box }}

{{ t.notes }}

Example \u2014 Input
{{ t.name }} table:
{{ t.box }}
Expected Output
{{ current.outputBox }}
Your Query
Hint \u2014 the correct query
{{ hintQuery }}
{{ verdictMsg }}
Your Result
{{ col }}
{{ cell }}
🔒

To Track Your Progress, Log In / Sign Up

Anyone can solve the first problem in every section for free. Log in (completely optional, but quick) to unlock every problem and track what you’ve solved.

Sign Up Free Log In