Meta SQL Interview Prep

Meta SQL Interview
Questions

Practice the SQL patterns that recur in Meta (formerly Facebook) data analyst and data engineer interview rounds. Window functions, aggregations, date functions — with AI tutoring and instant feedback.

Practice the 22 Meta-tagged challenges — 7 free See all 22 Meta-tagged challenges ↓

What is sourced: Meta does not publish its interview format, so every specific about their process on this page is what candidates and prep guides described publicly — each one carries its source and the date it showed. Formats change; treat them as reported, not official. What is ours: the practice questions are SQL Quest challenges, picked because their SQL matches the patterns those sources report. They are not questions Meta has asked.

How the interview runs

The Meta SQL interview, as candidates report it

Meta does not publish the format. Each row is what candidates and prep guides have described publicly, with its source; where sources disagree, the row says so. Formats change — treat every specific as reported, not official. The sources below describe Data Engineer; other teams at Meta may run a different loop.

The technical screenTwo candidate reports agree on five problems in the screen: three SQL and two Python.[1][2]
EnvironmentYou are given the schema, and in both the screen and the onsite the code is not expected to be runnable — one report adds that the onsite also gives you the expected output. Interviewers differ in how strict they are about syntax.[1]
What the SQL coversReported as medium difficulty: window functions, subqueries, CTEs and date/time work.[2]
The onsiteDescribed as several rounds spanning product sense, data modelling, SQL, Python and behavioural. Neither report gives a length for the individual rounds, so this page does not state one.[1]
  1. [1] Blind — "Meta Data Engineer 2025 Interview Experience" (candidate report, E4 offer) (5 Apr 2025)
  2. [2] Blind — "Meta Data Engineer: Technical Screen-Help" (poster plus two replying candidates) (17 Mar 2025)

Sources: Blind — "Meta Data Engineer 2025 Interview Experience" (candidate report, E4 offer) (5 Apr 2025); Blind — "Meta Data Engineer: Technical Screen-Help" (poster plus two replying candidates) (17 Mar 2025). Accessed 14 Sep 2026.

Practice Set Composition

What the Meta practice set actually covers

The 22 challenges tagged Meta in the SQL Quest bank, with every raw challenge tag resolved to the 9 canonical skills. Each share is the portion of those 22 challenges that exercise the skill — a challenge exercises several, so the shares do not sum to 100%. This is the composition of the practice set on this page, not a measurement of Meta’s interview.

Practice Questions

Six SQL Quest challenges matched to Meta’s patterns

These are SQL Quest challenges chosen because their SQL matches the work — Querying Basics, Aggregation & Grouping, Window Functions. They are not questions Meta has asked, and this page does not claim to know its questions. All of the six play free; each card opens the challenge itself.

Open all 22 Meta-tagged challenges — 7 play free →

Analyst Round

What the Meta analyst SQL round tests (September 2026 refresh)

Updated September 2026 · 22 Meta-tagged challenges in the bank · 7 play free, 15 are Pro

Analyst-round SQL questions keep returning to six shapes: rank inside a group, accumulate across rows, compare a row with its neighbour, count who is still here, find the repeat, and filter by existence. Each family below lists every Meta-tagged challenge that drills it. All 22 run in the browser and show the solution once solved.

1 · Ranking and percentiles 5 challenges

DENSE_RANK versus ROW_NUMBER on ties, NTILE quartiles, PERCENT_RANK, and a median with no percentile function. Say which tie-break the question wants before you write it — that sentence is usually worth more than the query.

2 · Running totals, rolling windows and share of total 3 challenges

The frame clause and the empty OVER (). A running SUM, a three-row rolling average, and a category's share of the whole without a second query.

3 · Sessionization and gaps-and-islands 2 challenges

Compare a row with its neighbour. LAG finds the gap, a running SUM of the gap flags becomes the session id, and the ROW_NUMBER-difference trick turns consecutive dates into islands.

4 · Retention, cohorts and active users 5 challenges

Count who is still here. Daily actives, customers active in two or more months, days since the last order, and a first-order-month cohort table.

5 · Self-joins and repeat behaviour 3 challenges

Find the repeat. The orders table joined to itself on the customer with the date window in the ON clause, and the employees table joined to itself on id + 1.

6 · EXISTS, relational division and join aggregation 4 challenges

Filter by existence. Correlated EXISTS, the every-category relational-division question, and a LEFT JOIN with COALESCE so empty groups still show.

Practice the Meta set →
How To Prepare

How to prepare for an analytics SQL round

General guidance about analytics SQL work — not sourced from Meta and not a description of its process. We have no dated, citable source for how Meta runs its SQL round, so this page states none.

Skillmap

How ready are you for the Meta SQL round?

Ten questions, no signup. You get a readiness score weighted to the SQL this page covers, your Skillmap across joins, window functions, aggregation and the rest, and the weakest skill to practise first.

Check my Meta readiness Start the Meta set

Meta SQL Interview FAQ

Drill the skills the Meta set leans on, one at a time: GROUP BY exercises · Window function practice · CTE practice · JOIN practice · Date function practice — or browse every SQL practice question.

Every question in the Meta set, one page each with the schema and a hint: EXISTS vs IN: Departments with Top Performers · Quarterly Hiring Cohort Report · Departments With High Earners · Customer Recency Analysis · Membership Tier Revenue Analysis · Multi-Month Active Customers · Cumulative Distinct Customers Over Time · Salary Percentile Ranking · Order Sessionization by Customer · Detect Repeat Buyers Within 7 Days · Consecutive IDs · 3-Movie Rolling Average Revenue · Fare Percentile Ranking · Daily Active Customers · Revenue Share by Category (Window %) · Median Salary Without PERCENTILE · Customers with Orders in ALL Categories · Self-Join: Repeat Orders Within a Week · Island Length Classification · Department Salary Percentile Buckets · Customer Retention Cohort · Second Highest Salary per Department.

Ready to ace your
Meta SQL interview?

Practice the 22 Meta-tagged challenges with AI tutoring, instant feedback, and real datasets. Free to start, no signup.

Practice the Meta Set →

Works on Chrome, Firefox, Safari, Edge · No plugins · No downloads

Interviewing at more than one company? The same patterns carry: Google · Amazon · Apple · Netflix — or the full company-by-company interview guide.