SQL practice / Reddit
Free SQL interview practice

Reddit SQL interview questions. All free.

3 SQL practice questions in our Reddit 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 Medium · 1 Hard

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

Inside the Reddit 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

Subreddits With Zero Posts This Month

Find all subreddits that had zero non-deleted posts in March 2026. A subreddit should be excluded if any non-deleted posts exist for dates between March 1 and March 31, 2026. Return columns: subreddit_id, subreddit_name. Order by subreddit_name ascending.

Tables: subreddits, posts
Medium · 10 min

7-Day Rolling Average of Daily Active Commenters

Calculate the 7-day rolling average of daily active commenters. For each day, first count the number of distinct non-deleted commenters. Then compute a rolling window that averages the daily active commenters over the current day plus the previous 6 days (7-day window). Return columns: comment_date, daily_active (count of distinct non-deleted authors per day), rolling_7d_avg (the 7-day rolling average). Order by comment_date ascending.

Tables: comments
Hard · 15 min

Top Posts by Engagement Rate Across Subreddits

Find the top 3 most engaging posts (by engagement rate) in each subreddit from Feb 27 to Mar 29, 2026. Engagement is calculated as the sum of absolute score and non-deleted comment count. Engagement rate is engagement divided by total views. Only include posts with at least 50 views, and only include subreddits where the total view count across all qualifying posts is at least 100. Return columns: subreddit_name, post_id, engagement_rate (rounded to 2 decimals), rnk (dense rank within subreddit). Order by subreddit_name and rnk ascending.

Tables: posts, comments, post_views, subreddits
The bank

Reddit SQL questions. Start typing SQL.

3 Reddit problems, each with its own dataset. Click one and you’re in the workspace, free, right in your browser.

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.
Subreddits With Zero Posts This MonthReddit

Your dataset

subreddits

subreddit_id (INTEGER) · subreddit_name (VARCHAR) · created_date (DATE) · subscriber_count (INTEGER)

posts

post_id (INTEGER) · subreddit_id (INTEGER) · author_id (INTEGER) · post_date (DATE) · title (VARCHAR) · score (INTEGER) · is_deleted (BOOLEAN)

Try this Reddit question
3
Reddit 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 Reddit SQL free

Create a free account to sync solved history →