Top 50
Topic roadmap
Updated weekly · Last refresh Sep 12

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
189companies 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. 33 questions · ~660 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

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

sql queryEvenUpPlayStationDDelivery Hero
SQL Retention Rate QueryMedium
Practice

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

sql queryData AnalysisDDisney Entertainment & SportsTuroIntuit
Find Duplicate RecordsMedium
Practice

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

sql querydata integrityPENFED Credit UnionQuinstreetCostar
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 InternationalYYASH Technologies
Top Users by EngagementMedium
Practice

Rank Dayforce users by quarterly engagement and return the top 10% using aggregation and NTILE().

sql queryEngagement MetricsDayforceLatticeCondé Nast
SQL Second Highest SalaryEasy
Practice

Find the second distinct highest salary in S&P Global employee data without using window functions.

sql querydatabasesalaryS&P GlobalFFareportalItc Infotech
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
Window Functions6 questions · ~120 min
More Window Functions questions with a free account
3
More topics11 questions · ~220 min
Duplicate Transactions SQLEasy
Practice

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.