Top 50
Topic roadmap
Updated weekly · Last refresh Sep 12

Top 50 data relationships Interview Questions

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

50questions
~8htotal time
57companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
SQL & Data ManipulationStart here. 49 questions · ~498 min
Find Inactive CustomersEasy
Practice

Find Flipkart customers with no orders in the prior six months using a LEFT JOIN and date-filtered aggregation.

data relationshipsuser retentionsql queriesFlipkartPNC Financial Services Group
Mutual Follows QueryMedium
Practice
Recently asked

Use a self-join to return each mutual follower pair once, with the lower user ID first.

data relationshipsnull handlingJoinsBee RoboticsSupermicro
First and Last Transaction Day PurchasesMedium
Practice
Recently asked

Use CTEs and conditional aggregation to find Meta users with at least three items on both their first and last transaction days.

data relationshipsJoinsAggregationsMeta
SQL Query for Team MatchesEasy
Practice
Recently asked

Pair every Pool A team with every Pool B team and format each matchup as Team A vs Team B.

data relationshipsJoinssqlAltimetrik
SQL Match Customers by CityMedium
Practice

Use a self-join to return unique pairs of customers who share the same non-null city and country.

data relationshipsnull handlingJoinsPhonepe
SQL: Parents With SiblingsEasy
Practice

Use joins and COUNT(DISTINCT) to find Janus Henderson Investors parents linked to multiple students.

data relationshipssqlJanus Henderson Investors
Find First Defect Created After Each DeploymentMedium
Practice

Use joins and ROW_NUMBER to find the earliest defect created after every deployment.

Window Functionsdata relationshipsDate FunctionsApex Systems
SQL Churn After First MonthMedium
Practice

Use monthly cohort logic to find users with no transaction in the calendar month after their first transaction month.

data relationshipsDate FunctionsCTEsServiceTitan
More SQL & Data Manipulation 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
More topics1 question · ~10 min
More questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.