Contribute OA questions
OAHelper
CompaniesProblemsTopicsInterview Experiences
Explore

OA Helper

SQL Roadmap

14 levels, one a day. 11 topics and 110 real OA questions, from your first SELECT to window functions.

1

Level 1

0 / 14 cleared

First levelStart with SQL

Play level 1
Message from the creatorsIf SQL has cost you marks in an OA, it is not because you are not good enough. Nobody showed you how these questions are actually asked.Read the full messageClose

Every placement season, we watch the same thing happen.

You prepare DSA for months. Then the OA opens, and there are two SQL questions you did not see coming. You studied SQL once, in a college subject, two years ago. You know what a JOIN is. But you have never written one with a timer running and hidden test cases checking every row. Ten minutes go. Then twenty. The marks go with them, and sometimes the shortlist does too.

That is not because you are not good enough. Nobody showed you how these questions are actually asked.

So we built this for that one gap. Fourteen days, one topic a day, and every practice question here was asked in a real company OA. It is short on purpose, because you have a lot else to prepare.

Start with Day 1, even if it looks easy. That is where you learn how the judge reads your output, and it is where most people lose their first marks.

When that SQL question shows up in your OA, we want you to smile at it.

The OA Helper team

234567891011121314
1
You are here
1

Level 1 · Day 1

Start with SQL

Learn what a table is and write your first SELECT. Pick the rows you need and sort them.

  • SELECT
  • WHERE
  • ORDER BY
  • LIMIT

UnlocksYou can pick rows and columns and sort them the way the question asks.

8 questions · 1.5 to 2 hrs Play
2
2

Level 2 · Day 2

Count and group rows

Find totals, averages and counts. Group rows by city or department with GROUP BY.

  • COUNT
  • SUM
  • AVG
  • GROUP BY
  • HAVING

UnlocksYou can answer "how many per city" and "average per department".

10 questions · 2 to 3 hrsOpen
3
3

Level 3 · Day 3

Count with a condition

Count only the rows that match a rule using CASE WHEN. Turn rows into columns.

  • CASE WHEN
  • SUM(CASE)
  • COALESCE

UnlocksYou can make a small report with one column per status.

8 questions · 2 to 2.5 hrsOpen
4
4

Level 4 · Day 4

Join two tables

Combine two or three tables with JOIN. Keep the rows that have no match too.

  • INNER JOIN
  • LEFT JOIN
  • ON

UnlocksYou can join students, offers and companies without losing rows.

9 questions · 2 to 3 hrsOpen
5
5

Level 5 · Day 5

Find what is missing

Compare a table with itself. Find customers who never ordered, or staff who earn more than their manager.

  • SELF JOIN
  • NOT EXISTS
  • IS NULL

UnlocksYou can answer "who earns more than their manager" and "who never ordered".

6 questions · 2 hrsOpen
6
6

Level 6 · Day 6

A query inside a query

Break one big question into small steps with WITH. Combine the results with UNION.

  • WITH
  • IN
  • EXISTS
  • UNION

UnlocksYou can write a two step answer without getting confused.

10 questions · 2 to 3 hrsOpen
7
7

Boss level · Day 7

Week 1 test

12 mixed questions from Week 1 in 90 minutes. No notes, like a real OA.

  • week 1
  • timed

UnlocksYou know which topics of the week need one more look.

12 questions, timed · 90 minOpen
8
8

Level 8 · Day 8

Rank rows in a group

Second highest salary. Top 3 in every department. The most asked SQL interview question.

  • ROW_NUMBER
  • RANK
  • DENSE_RANK
  • PARTITION BY

UnlocksYou can solve the most asked SQL interview question in three ways.

8 questions · 2.5 to 3 hrsOpen
SUMMIT
9
9

Level 9 · Day 9

Running totals and streaks

Compare a row with the one before it. Running totals and streaks of consecutive days.

  • LAG
  • LEAD
  • SUM OVER

UnlocksYou can find day on day growth and three days in a row attendance.

8 questions · 2.5 to 3 hrsOpen
10
10

Level 10 · Day 10

Text and dates

Group by month, count the days between two dates, and cut text like an email into parts.

  • strftime
  • julianday
  • SUBSTR
  • GROUP_CONCAT

UnlocksYou can group by month and cut a name or email into parts.

10 questions · 2 hrsOpen
11
11

Level 11 · Day 11

Big company questions

Long questions with three or four tables. Read them fast and solve them step by step.

  • multi CTE
  • funnel
  • retention

UnlocksYou can read a long question in two minutes and plan the answer.

9 questions · 3 hrsOpen
12
12

Theory level · Day 12

Interview theory

Keys, normal forms, indexes, ACID. 40 quick answers for the interview round after the OA.

  • keys
  • normal forms
  • indexes
  • ACID

UnlocksYou can answer the theory round the day after the OA.

Reading only · 2 hrsOpen
13
13

Boss level · Day 13

Final test

12 questions from every topic in 90 minutes. Pass this and you are ready.

  • all topics
  • timed

UnlocksYou know where you stand before the real OA.

12 questions, timed · 90 minOpen
14
14

Final level · Day 14

Revision day

Retake both tests, redo every question you missed, and reread the common mistakes of each topic.

  • retake
  • revise

UnlocksYou walk into the OA having fixed your own weak spots.

Retake both tests · 2 to 3 hrsOpen

Summarise with AI

  • ChatGPT
  • Claude
  • Perplexity
  • Grok
  • Google AI Mode
Your next OA is closer than you think.Real questions from this season's OAs
ProductCompany OAsAll ProblemsOA CalendarMock OAsDSA RoadmapSQL RoadmapAgent Engineering
ResourcesInterview experiencesTopicsOA GroupsContributeCompany InsightsOA StorePremiumFor Colleges
OA Helper, powered by NxtWave
TermsPrivacyRefundsTrust & SafetyContact© 2026 OA Helper

Disclaimer: OAHelper is an independent educational platform. We (oahelper.in) do not own the images or questions shown. Content is uploaded by users.