Top 50
Topic roadmap
Updated weekly · Last refresh Sep 13

Top 50 CTEs Interview Questions

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

50questions
~17htotal time
73companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
Window FunctionsStart here. 25 questions · ~500 min
Compare Signup Cohorts by RetentionHard
Practice

Use CTEs, joins, and date logic to compare 30-day activity rates across monthly signup cohorts.

Window FunctionsDate FunctionsCTEsGappifyDocusignJio
Compare User Retention by CohortHard
Practice
Recently asked

Use CTEs, joins, and month-based aggregation to calculate cohort retention over time from signup and activity data.

Window FunctionsDate FunctionsCTEsWorkdayAmazon Development Center U.S.The Sparks Foundation
Detect Post-Launch Customer Behavior ShiftsMedium
Practice

Use CTEs, joins, and conditional aggregation to compare customer orders before and after a product launch.

Window FunctionsDate FunctionsCTEsQuoraMotiveIntuit
Flag and Remove Duplicate CustomersMedium
Practice

Use a CTE and ROW_NUMBER to identify duplicate customer records, keep one row, and flag the rest.

Window FunctionsData WranglingCTEsMicrosoft
SQL for User RetentionMedium
Practice

Measure monthly user retention by signup cohort using date calculations and aggregated activity.

Window FunctionsDate FunctionsCTEsLeidosCConstellation TechnologiesCarGurus
More Window Functions 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
Date Functions10 questions · ~200 min
Compare Sales Before Product LaunchMedium
Practice

Use joins, CTEs, and conditional aggregation to compare 30-day revenue and order counts before vs after each product launch.

Date FunctionsJoinsCTEsMotiveBlue Orange DigitalQuora
Compare Reels Signup Cohort EngagementHard
Practice

Use CTEs, LEFT JOINs, aggregation, and LAG to compare 14-day Instagram Reels engagement across January and February signup cohorts.

Date FunctionsCTEsAggregationsMeta
More Date Functions questions with a free account
3
Subqueries3 questions · ~60 min
Running Totals With CTEsMedium
Practice
Recently asked

Calculate daily net cash movement and running balances for Alpaca brokerage accounts using a CTE, subquery, and window function.

SubqueriesCTEsRunning TotalsAlpacaGoldman Sachs BankGrail
More Subqueries questions with a free account
4
CTEs4 questions · ~80 min
More CTEs questions with a free account
5
Joins6 questions · ~120 min
More Joins questions with a free account
6
More topics2 questions · ~40 min
More questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.