SQL practice / Meta
Free SQL interview practice

Meta SQL interview questions. All free.

36 SQL practice questions in our Meta collection, part of our 188-question bank across 23 companies. Write SQL against practice datasets and get checked in your browser. Free, no card or trial.

No account needed to start. Draft SQL stays in this browser; create an account to sync solved history.

1 Easy · 1 Easy–Medium · 15 Medium · 7 Medium–Hard · 12 Hard

Independent practice resource. Not affiliated with or endorsed by Meta.

Inside the Meta set

SQL topics you can practice.

These topics come from the questions in this set. Pick one to open the matching problems.

Easy · 5 min

Average Post Hiatus

For each user who posted at least twice in 2024, find the number of days between their first post and last post of the year. Return user_id and days_between.

Tables: posts
Easy–Medium · 8 min

App Click-Through Rate

Calculate the click-through rate (CTR) for each app in 2022. CTR = 100 * clicks / impressions, rounded to 2 decimal places. Output app_id and ctr.

Tables: events
Medium–Hard · 15 min

MAU Retention

Find the count of users retained in July 2022 — users who were active in both July 2022 AND June 2022. Return retained_users as a single value.

Tables: user_actions
How it works

Solve in the browser. Checked instantly.

  1. 1
    Pick a problemPractice questions for data science and analytics interviews, each with its own tables, difficulty, and time target.
  2. 2
    Write and run SQLA full database engine loads in the tab. No setup, nothing to install — query the practice dataset immediately.
  3. 3
    Submit for a verdictPass and move to the next problem. Miss and you unlock the expected output and a reference solution.
Average Post HiatusMeta

Your dataset

posts

user_id (INTEGER) · post_id (INTEGER) · post_date (TIMESTAMP) · post_content (TEXT)

Try this Meta question
36
Meta questions
188
questions in the full bank
$0
free access

Solve one now. Build your solved history.

Start free, no account needed. When you create one, everything you’ve solved comes with you — solved marks, streaks, and concept ratings on your dashboard.

Practice Meta SQL free

Create a free account to sync solved history →