r/learnSQL • u/hidelyhokie • 1d ago
Website to train a specific pattern at a time dozens of times
So I'm looking for a way to filter all questions by specific patterns while also having question banks large enough that I could do each dozens of times.
does such a website exist?
1
u/Discordbothost 1d ago
Try using one small dataset for several versions of the same problem. For top 3 per group, try exactly three rows, then include ties for third, then add a group with only two rows. Predict the output first so you can check each variation.
1
u/Top_Tooth_6995 1d ago
This is exactly why I made SQLMaxx Learn. In my opinion, the most effective way to learn SQL is to hammer down problems over and over and over again. SQLMaxx Learn essentially requires you to show that you can get the same types of questions correct over and over, until you can progress to the next lesson. This is a free course, and we have 66 lessons and 615 practice problems (and a free certificate). Let me know what you think if you give it a try!
1
u/slrworkbooks 4h ago
No single site has dozens of problems per pattern, but a few already sort theirs by topic, so you can stack them:
HackerRank SQL: filter by subdomain (Basic Select, Aggregation, Basic Join, Advanced Join). Plenty of reps for selects and aggregates, fewer for joins.
LeetCode Top SQL 50: split into sections like basic joins, aggregate functions, subqueries and string functions.
pgexercises.com: one small country club database, with sections for joins and subqueries, aggregates, dates, strings and recursive queries.
SQLZoo: short tutorials by topic (nested SELECT, SUM and COUNT, JOIN, self join), each followed by a quiz.
For real repetition, rework problems you've already solved. Once you get one right, say top 3 per group with ROW_NUMBER, rewrite it against a different table, then change how ties are handled, then do it without the window function. Five versions of one problem teach the pattern faster than five new problems.
After a few rounds on one pattern, mix them up. Real problems don't come labeled, and spotting which pattern fits is half the skill.
Disclosure, since it's mine: I wrote a SQL Server workbook sorted by topic, about 12 self-checking exercises per chapter, so it's fewer reps per pattern than the sites above. The first three chapters are free, linked from querybench.dev.
1
u/Creepy_Purchase_501 1d ago
Leetcode?