Top 50
Topic roadmap
Updated weekly · Last refresh Nov 3

Top 50 sql query Interview Questions

The most frequently asked sql query questions across all roles and companies, ranked by real interview frequency. Updated daily.

50questions
~17htotal time
234companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
sql queryStart here. 23 questions · ~460 min
Rolling 7-Day Average QueryMedium
Practice
Recently asked

Calculate Deliveroo's daily order volume and rolling 7-day average using a date spine, aggregation, and window functions.

sql queryKoch Minerals & TradingDeliverooLLSEG (London Stock Exchange Group)
Rolling 30-Day Retention QueryHard
Practice
Recently asked

Calculate acquisition-cohort retention within 30 days by channel using CTEs, joins, and conditional date ranges.

sql queryEvenUpPlayStationAffirm
Rolling 30-Day Average QueryMedium
Practice
Recently asked

Calculate Beyond Finance daily sign-ups and their 30-day rolling average using CTEs and window functions.

sql queryBeyond FinanceHHEINEKEN InternationalGGrover
Find Duplicate RecordsMedium
Practice
Recently asked

Find duplicate PenFed application records using a windowed count over business-key columns.

sql querydata integrityPENFED Credit UnionQuinstreetCostar
SQL Retention Rate QueryMedium
Practice
Recently asked

Calculate Disney+ January cohort retention in February using a CTE, LEFT JOIN, date filters, and distinct user counts.

sql queryData AnalysisDDisney Entertainment & SportsTuroIntuit
Rolling Retention in SQLHard
Practice
Recently asked

Calculate Webex daily active users and seven-day rolling retention using PostgreSQL CTEs, joins, and distinct aggregations.

sql queryFreshworksLiveRampSeatgeek
More sql query questions with a free account

Sign up to see every question

Create a free account to unlock this list and practice real interview questions.

Get my prep plan
2
Joins4 questions · ~80 min
SQL for Top CategoriesMedium
Practice

Aggregate sales by category and return the three highest-performing categories.

Joinssql queryGroup ByGGrafton ApparelGGhanda Clothing11 Stop HR
More Joins questions with a free account
3
Date Functions7 questions · ~140 min
More Date Functions questions with a free account
4
Window Functions6 questions · ~120 min
More Window Functions questions with a free account
5
More topics10 questions · ~200 min
Duplicate Transactions SQLEasy
Practice
Recently asked

Use a CTE, GROUP BY, HAVING, and joins to identify duplicate transactions in the Syfe user ledger.

ledgersql querySSyfeAvidXchange
More questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.