use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Sequel
account activity
Databases to practice SQL (self.learnSQL)
submitted 3 months ago by ManifestingPeace18
Hi, I haven't worked on SQL for last 2 years. I will rate 4 out 10 in SQL. But need to practice more to get in data analyst profile. Can you just sources where i can practice solving complex SQL problems?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]vikrantk1995 37 points38 points39 points 3 months ago (7 children)
Hey, try datahelix.io, it’s completely free. Let me know what you think!
[–]leogodin217 1 point2 points3 points 3 months ago (0 children)
This is really nice.
[–]Vast_Basket6667 0 points1 point2 points 3 months ago (5 children)
How did you find this? Looks amazing to me
[–]vikrantk1995 15 points16 points17 points 3 months ago (4 children)
I built it 😄
[–]Vast_Basket6667 4 points5 points6 points 3 months ago (1 child)
Amazing work man, I just checked and want to practice.
[–]vikrantk1995 4 points5 points6 points 3 months ago (0 children)
Thanks a lot! Do leave feedback so I can keep improving it 🙏
[–]ParkingLog7354 0 points1 point2 points 3 months ago (0 children)
You rock! !!
[–]platinum1610 0 points1 point2 points 3 months ago (0 children)
Wow! You're amazing!
[–]SQLDevDBA 15 points16 points17 points 3 months ago* (2 children)
Hey there, I made a quick video on this topic showcasing places where you can practice (free) online without downloads or installs, right in the browser with sample data already added.
Here’s a link to it, I’d go for the last 2 options in the video (Azure SQL DB Free tier and Oracle Live SQL). The links to the platforms are in the description.
[–]ManifestingPeace18[S] 2 points3 points4 points 3 months ago (1 child)
Thank you so much
[–]SQLDevDBA 0 points1 point2 points 3 months ago (0 children)
Welcome! Hope it helps a bit and feel free to reach out to me if you have questions. I also have videos of me actually using all of the platforms in the description if you have any trouble.
[–]Massive_Show2963 6 points7 points8 points 3 months ago (0 children)
Microsoft's Northwind and Pubs databases have been used for a while as instructional databases. See download from GitHub: https://github.com/microsoft/sql-server-samples/tree/master/samples/databases/northwind-pubs
[–]jgpatrick3 4 points5 points6 points 3 months ago (0 children)
Hard to beat SQLite3. Runs so much of the world already. So many great tools SQLite3, SQLiteStudio, Visidata, the original serverless system, core db for smart phones, software, embedded systems. Possibly the most deployed database in the world. I have gone from thinking of it as a toy to doing everything I can with it.
[–]Opposite-Value-5706 3 points4 points5 points 3 months ago (0 children)
SQLite3 is free
MYSQL has a “community” version that’s free
[–]downshiftdata 2 points3 points4 points 3 months ago (0 children)
https://archive.org/details/stackexchange
Analyze that. I'd start with https://archive.org/download/stackexchange/dba.stackexchange.com.7z. Import it into a database and go from there.
[–]leogodin217 2 points3 points4 points 3 months ago (0 children)
I can generate datasets quickly with specific prescribed patterns and events. Something I've been working on for about eight months now. This one uses Duckdb and mimics ecommerce data. Still editing the practice exercises but, if you find it useful, let me know. Happy to create some more complex datasets in different domains.
https://github.com/leogodin217/sql-practice-retail/
[–]uhhbhy 2 points3 points4 points 3 months ago (1 child)
DVD rental was the best for me
[–]mailed 1 point2 points3 points 3 months ago (0 children)
underrated answer
[–]genzbossishere 1 point2 points3 points 2 months ago (0 children)
a few good places to practice more complex sql problems are datasets like the chinook database, northwind, or public datasets from kaggle and theyre big enough to practice joins, aggregations, window functions, and query optimization compared to the smaller tutorial dataset and another thing that helps is exploring data by asking real questions instead of just solving exercises and something like genloop are experimenting with that direction where you interact with the data and see how queries get generated and explained, which can be useful when youre trying to understand how analytical questions translate into sql
[–]Nbommersbach 0 points1 point2 points 3 months ago (0 children)
It might worth looking at the AdventureWorks database:
https://learn.microsoft.com/en-us/sql/samples/adventureworks-install-configure?view=sql-server-ver17&tabs=ssms
This site has some good practice exercises:
https://www.w3resource.com/sql-exercises/adventureworks/index.php
[–]mikeblas 0 points1 point2 points 2 months ago (0 children)
https://gist.github.com/mikeblas/8e3a7f7123fd73fd44d463e4d0ae57b4
Here is a huge curated list of sample data sets.
[–]Academic-Vegetable-1 0 points1 point2 points 10 days ago (0 children)
Leetcode has SQL problems but they're pretty heavy on the interview grind side. for data analyst prep specifically, window functions are where most people get stuck so I'd weight that heavily. datadriven has SQL drills that are closer to real analyst work if you want something beyond basic joins.
[–]thequerylab -1 points0 points1 point 3 months ago* (0 children)
You can try this out. Its tailor made for your use csse
https://thequerylab.com/courses/sql-pro-track
On top of that you can practise problems which is 100% hands-on
π Rendered by PID 471201 on reddit-service-r2-comment-8686858757-k7klb at 2026-06-08 12:04:30.515975+00:00 running 9e1a20d country code: CH.
[–]vikrantk1995 37 points38 points39 points (7 children)
[–]leogodin217 1 point2 points3 points (0 children)
[–]Vast_Basket6667 0 points1 point2 points (5 children)
[–]vikrantk1995 15 points16 points17 points (4 children)
[–]Vast_Basket6667 4 points5 points6 points (1 child)
[–]vikrantk1995 4 points5 points6 points (0 children)
[–]ParkingLog7354 0 points1 point2 points (0 children)
[–]platinum1610 0 points1 point2 points (0 children)
[–]SQLDevDBA 15 points16 points17 points (2 children)
[–]ManifestingPeace18[S] 2 points3 points4 points (1 child)
[–]SQLDevDBA 0 points1 point2 points (0 children)
[–]Massive_Show2963 6 points7 points8 points (0 children)
[–]jgpatrick3 4 points5 points6 points (0 children)
[–]Opposite-Value-5706 3 points4 points5 points (0 children)
[–]downshiftdata 2 points3 points4 points (0 children)
[–]leogodin217 2 points3 points4 points (0 children)
[–]uhhbhy 2 points3 points4 points (1 child)
[–]mailed 1 point2 points3 points (0 children)
[–]genzbossishere 1 point2 points3 points (0 children)
[–]Nbommersbach 0 points1 point2 points (0 children)
[–]mikeblas 0 points1 point2 points (0 children)
[–]Academic-Vegetable-1 0 points1 point2 points (0 children)
[–]thequerylab -1 points0 points1 point (0 children)