r/learnSQL • • 6d 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 Upvotes

10 comments sorted by

1

u/Creepy_Purchase_501 6d ago

Leetcode?

1

u/hidelyhokie 3d ago

Seemed to be the same as codewars unless I missed a specific way to filter it

1

u/Discordbothost 6d 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/hidelyhokie 3d ago

That's a good idea. I was also thinking about just having Gemini set something up for me but then have to constantly wonder if I can trust it. Pretty good at this stuff but always inherently questionable. 

1

u/Top_Tooth_6995 6d 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!

2

u/hidelyhokie 3d ago

Bruh this is actually super legit and exactly what I was looking for. 

Once I get deeper in I'll let you know. Thanks!

1

u/Top_Tooth_6995 3d ago

Happy to hear that. And yeah - please feel free to message me with any feedback and whether you find SQLMaxx Learn helpful!

1

u/slrworkbooks 5d 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/hidelyhokie 3d ago

Thank you!

I did sqlbolt as first introduction and felt sqlzoo wasn't a huge step up. 

And will def be mixing it up later. Goal is to train all the patterns by building one after the other then go back to codewars as a test. 

Then I was going to do datalemur. 

Will check out hacker rank thanks!

1

u/datadriven_io 2d ago

Don't spend more then 20 min ok easy, 30 min on medium and 50/60 min on hard before checking the pattern. Datadriven.io is good for dimensional modeling practice if you learn by doing. Spending more time also wastes your time.