r/SQL • u/KonkombaNimo • Aug 15 '26
MySQL Beginner at SQL
I'm a beginner learning SQL (JOIN, CASE, WHERE, GROUP BY, etc) and am looking for a fun and entertaining database to practice my coding on. Any suggestions?
This is not a post about how to start learning SQL by any means.
72
Upvotes
View all comments
6
u/mikeblas Aug 15 '26
It's not so hard to find sample data and data sources to use for interesting side-projects, or just for practicing writing SQL.
In-product sample data
Most DBMSes come with sample databases. You can write lots of interesting queries against them, and usually a tutorial accompanies the database in the documentation.
Documentation for Microsoft SQL Server's samples
For MySQL:
For PostgreSQL:
Some websites are full of sample data sets. Why not download an interesting one, learn to load it up, and write your own interesting queries?
Dataset Websites
There are many websites which host data sets.
Third-party sample data
Of course, some sample data is built for generic tutorials, by third parties:
Practice Sites
There are some sites that let you write queries interactively with canned data, rather than having you download data to play with on your own.
Regular dumps
Some sites publish data by making their backups available, or dumping the data they use to make their own reports.
StackOverflow makes their developer survey data sets available each year.
Some governments make data about the city and its residents available openly:
Live data sources
Some data sources produce data live, as it happens. These are itneresting sources becaue they usually represent slowly changing dimensions, and will need to be accumulated or logged before being stored or processed.
General Transit Feed Specification (GTFS) data is provided by many metropolitain areas to describe movement of their transportation infrastructure; where are scheduled busses and trains right now?
Finding more
There's data everywhere! If you don't like these sources, you can try finding other data sets.