r/learnSQL • u/FussyZebra26 • Mar 14 '26
A free SQL practice tool focused on varied repetition and high-volume practice
While learning SQL, I’ve spent a lot of time trying all of the different free SQL practice websites and tools. They were helpful, but I really wanted a way to maximize practice through high-volume repetition, but with lots of different tables and tasks so you're constantly applying the same SQL concepts in new situations.
A simple way to really master the skills and thought process of writing SQL queries in real-world scenarios.
Since I couldn't quite find what I was looking for, I’m building it myself.
The structure is pretty simple:
- You’re given a table schema (table name and column names) and a task
- You write the SQL query yourself
- Then you can see the optimal solution and a clear explanation
It’s a great way to get in 5 quick minutes of practice, or an hour-long study session.
The exercises are organized around skill levels:
Beginner
- SELECT
- WHERE
- ORDER BY
- LIMIT
- COUNT
Intermediate
- GROUP BY
- HAVING
- JOINs
- Aggregations
- Multiple conditions
- Subqueries
Advanced
- Window functions
- CTEs
- Correlated subqueries
- EXISTS
- Multi-table JOINs
- Nested AND/OR logic
- Data quality / edge-case filtering
The main goal is to be able to practice the same general skills repeatedly across many different datasets and scenarios, rather than just memorizing the answers to a very limited pool of exercises.
I’m curious, for anyone who uses SQL in their job, what do you think are the most important SQL skills someone learning should practice?
7
u/nowshowjj Mar 15 '26
Thank you for making this. I’m so afraid that once I’m done with the course I’m taking that I’ll forget everything I’ve learned. I’ll check it out when I’m done with the course.
4
u/FussyZebra26 Mar 14 '26
I'm still improving it and adding more exercises, but if anyone wants to try it out and share some feedback, I'd genuinely appreciate it.
The site is: sqldrills.com
1
u/wwedgehead05 Mar 15 '26
I’m pretty good in DAX, M, and Excel formulas but have almost no sql knowledge and want to know it for upcoming database work at my job. This rules. Genuinely exactly what I’ve been looking for, I’ve been looking for awhile for just simple sql training and scenarios to get me started. I don’t need it gamified or anything.
1
u/DisasterIndependent2 Mar 15 '26
Hi I just tried this site. I had the following question as first question.
TABLE SCHEMA Table: coffee_shop_sales Columns: sale_id, customer_id, drink_type, size, price_usd, sale_date
TASK How many sales were for a Large size drink?
Your SQL Query Select Count(sale_id) from coffe-shop-sales where size = 'Large'
OPTIMAL SOLUTION SELECT COUNT(*) FROM coffee_shop-sales WHERE size = 'Large'
Why is my solution wrong? Since the sales table should have sale_id for all rows, counting it is similar to count (*) right?
1
u/Fit_Negotiation_557 Mar 15 '26
Just what I needed - well done! I’m working through the Beginner questions. Do the questions end at a point where I move to Intermediate, or do I just keep going until I fell I’m ready for the next level?
2
u/thequerylab Mar 15 '26 edited Mar 15 '26
I actually had the same problem when I was learning SQL. Watching videos helped a bit, but things only started making sense once I started writing queries myself again and again.
That’s also why I built a small practice platform where the focus is 100% hands-on SQL. You get a schema and a problem, write the query yourself, and then compare it with the optimal solution and explanation. If you’re looking for something to practice with, you can check it out here:
https://thequerylab.com/courses/sql-pro-track
Even doing 10–15 minutes of query practice daily makes a big difference when learning SQL.
1
u/Phinalize4Business Mar 16 '26
I would love to his. At the moment my SQL is self-taught since the companies I work for seem to be allergic to upskilling or providing courses (for the most part)
0
u/WorriedMud7 Mar 15 '26
Thanks. This looks very helpful
1
u/[deleted] Mar 15 '26
[removed] — view removed comment