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.
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.
These topics come from the questions in this set. Pick one to open the matching problems.
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.
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.
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.
36 Meta problems, each with its own dataset. Click one and you’re in the workspace, free, right in your browser.
Your dataset
user_id (INTEGER) · post_id (INTEGER) · post_date (TIMESTAMP) · post_content (TEXT)
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 free188 SQL practice questions. 23 companies. Free access to every problem.