StrataScratch vs DataLemur: how they differ and when to use each

Pick DataLemur if you want SQL interview questions for data analyst and data science roles, with a free SQL tutorial to start. Pick StrataScratch if you're also preparing Python, machine learning or AI engineering rounds and want mock interviews and take-home projects; for free practice with no signup, Query Dojo's web questions run in the browser.

Updated October 30, 2026. Query Dojo is our app. Every other option is described from its own website or App Store listing.

Option Works on Cost Best for Watch out for
PostgreSQL Exercises Web Free Free practice on real PostgreSQL, from simple selects to window functions and recursive queries Every exercise uses one simple dataset, and the questions aren't framed as interview prompts
HackerRank Web Free Drilling SQL fundamentals by topic, with Easy, Medium and Hard filters Its SQL subdomains stop at joins and alternative queries; there's no dedicated window functions section
DataLemur Web Free tier SQL interview questions for data analyst and data science roles, with a free SQL tutorial to start Its pricing page puts the full set of SQL questions with hints and full solutions in the paid plans
StrataScratch Web Free tier Wider data interview loops: SQL and Python questions, AI mock interviews and take-home projects Much of the site targets Python, ML and AI engineering rounds; a separate pricing page covers the paid parts
Query Dojo Web, iPhone, iPad Free tier Interview-style questions you can run in the browser with no signup, plus timed mock interviews in the iPhone app Runs SQLite only; the app is iPhone and iPad only and needs a subscription

The short version

Both sites are built for the same moment: you have a data interview coming up and you want to practice the SQL questions that show up in it. They split on scope. DataLemur stays close to SQL and the analytics side of data science interviews. StrataScratch covers a wider loop, with Python, machine learning and AI engineering questions next to SQL, plus mock interviews and take-home projects.

So the first question isn't which site is better. It's which interview you're preparing for.

What DataLemur is built around

DataLemur is an interview question bank for data analyst and data science roles, made by the author of the book Ace the Data Science Interview. The question list mixes SQL with probability, statistics, machine learning and Python, and you can filter it by category and difficulty. Each question is tagged with the company it's attributed to.

SQL questions run in the browser on PostgreSQL by default, and the question we checked also let you switch to MySQL. The question page we opened showed a hint button and a written solution with more than one method, which is useful when you want to see the LEFT JOIN, NOT IN and NOT EXISTS versions of the same answer side by side.

If you're rusty, start with its free SQL tutorial for data analytics. It runs from SELECT and WHERE through GROUP BY, CASE, joins and date functions, then into CTEs, window functions, ranking, LEAD and LAG, self joins and pivoting.

The catch is on its pricing page: the paid plans are what give you the full set of SQL interview questions with hints and full solutions. So the free side covers part of the bank, not all of it. The top plan also adds a coaching call with the founder, which is a different kind of product from question practice.

What StrataScratch is built around

StrataScratch frames itself as interview prep for Data Science, Machine Learning and AI Engineering roles. Its question bank spans SQL, Python, ML system design and statistics, and the site leans into the newer parts of those loops:

  • AI mock interviews. Timed sessions where an AI interviewer scores your code and your communication.
  • Data Labs. Take-home style projects in cloud hosted Python notebooks, with no local setup.
  • Free learning paths. A SQL path that goes from foundations through grouping, multi-table queries, subqueries and CTEs, date and text functions, and window functions, plus a matching Python path built on pandas.
  • An AI coding tutor. Its blog announced a built-in tutor that explains questions, gives hints and debugs code.

You can start without a credit card, and a separate pricing page covers the paid parts. The tradeoff is focus. If your interview is a SQL screen for an analyst role, a lot of what StrataScratch offers is aimed at rounds you won't have.

How to choose between them

Pick based on the rounds in front of you, not on the size of the question bank.

  • Analyst role, SQL screen. DataLemur's narrower focus helps. Work through its free tutorial, then its SQL questions, and stop there.
  • Data scientist role with SQL and Python. StrataScratch covers both in one place, and its Python path is useful if pandas is the weak spot.
  • ML or AI engineering role. StrataScratch is the closer fit, since its concept questions, take-home projects and mock interviews are aimed at those loops.
  • No money to spend yet. Use the free parts of both before paying for either. DataLemur's tutorial and StrataScratch's learning paths are both free.

You don't need both subscriptions. Doing one set of questions properly beats having access to more of them.

When another option fits better

Sometimes neither is what you need.

HackerRank has a SQL practice area grouped into topics (Basic Select, Advanced Select, Aggregation, Basic Join, Advanced Join, Alternative Queries) with Easy, Medium and Hard filters. It works well for drilling fundamentals by topic, but its subdomain list doesn't include a dedicated window functions section.

PostgreSQL Exercises is free and runs real PostgreSQL. It goes from simple selects through joins, aggregates, dates, strings, window functions and recursive queries, all on one small dataset. That makes it good for Postgres syntax, less so for interview-style prompts.

Query Dojo is our site, so weigh this paragraph accordingly. Its practice questions run on real sample databases in your browser with no signup and no account, and every answer is checked against the expected result. Easy questions and the web-only practice pages are free; premium questions show the problem but keep the hints and solution for subscribers of the iPhone app, which also has timed mock interviews. It runs SQLite only, so it won't help you drill PostgreSQL or MySQL specifics. For a longer list of sites, see where to practice SQL.

A two-week plan with either site

  1. Days 1 to 3: patch the basics. Go through the free tutorial or learning path on the site you picked, and skip the lessons you can already do from memory.
  2. Days 4 to 7: core patterns. Do top N per group, second highest value, running totals and retention style questions. If you want a warm-up first, try Second Highest Salary and the window functions questions.
  3. Days 8 to 11: timed sets. Pick three or four questions you haven't seen, set a timer and talk through your approach before typing. A question like Monthly User Retention Rate is a fair test.
  4. Days 12 to 14: redo your misses. Go back to every question you got wrong and solve it again without looking at the old answer.

Habits that matter more than the site

  • Write your own answer before opening hints. Reading a solution feels like progress, but it isn't the same skill.
  • Test ties and NULLs on purpose. A query can pass on the sample rows and still break on duplicates or missing values.
  • Say the query out loud. Explaining each step as you write it is practice for the interview itself, not only for the query.

Common questions

Is DataLemur or StrataScratch better for SQL interviews?
It depends on the role. DataLemur stays close to SQL and analytics questions for data analyst and data science interviews, while StrataScratch adds Python, ML and AI engineering questions, AI mock interviews and take-home projects. For a SQL-only analyst screen, the narrower site is usually enough.
Are DataLemur and StrataScratch free?
Both have free parts. DataLemur has a free SQL tutorial and its pricing page puts the full question set with hints and solutions in paid plans; StrataScratch has free SQL and Python learning paths, needs no credit card to start, and has a separate pricing page for the rest.
Which SQL dialect does DataLemur use?
Its SQL questions run on PostgreSQL by default, and the question we checked also offered MySQL. Interview SQL rarely depends on dialect beyond date functions and row limits, so either works for practice.
Do I need both sites?
No. Pick the one that matches your interview rounds, finish a set of questions properly and redo the ones you missed. Adding a second site helps less than redoing your misses on the first.
Is there a free alternative with no signup?
Query Dojo's web practice questions run in the browser with no signup, and PostgreSQL Exercises is free with real PostgreSQL. HackerRank's SQL practice area is another free option sorted by topic.

Practice on your iPhone

Query Dojo for iPhone has 85 interview questions, timed mock interviews and a tile builder, so you can write queries without a keyboard.

Get the app