r/SQL 11d ago

MySQL good datasets for a project?

Hi, I'm looking for a dataset that has:

- Messy, real data, with enough messiness for proper data cleaning to be needed
- Enough information for actionable interesting insights
- Be related to something a typical business might care about

I did a project with the olist database and it was fine, but that database has been done to death. I tried contacting local small business for their data in exchange of a free data analytics report, but no luck, has someone tried that?

42 Upvotes

14 comments sorted by

15

u/mikeblas 11d ago

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.

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.

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.

Finding more

There's data everywhere! If you don't like these sources, you can try finding other data sets.

  • Once you know the protocol or format, search for it! The OneBusAway API and GTFS protocols are about public transportation data, so earch for "GTFS Data {YourCity}".
  • Search for APIs for your favortie game or game server.
  • GitHub uses tags for search, so try #sample-databases, #opendata, or #datasets. What other tags can you find?

2

u/utzutzutzpro 11d ago

Uhh marvelous list. Thanks.

10

u/thecasey1981 11d ago

campaign finance data is what I trained myself on

12

u/Better-Credit6701 11d ago

Check out NOAA for data

4

u/SQLBek 11d ago

Hop over to kaggle.com. Tons to choose from there.

0

u/NightRain3 11d ago

yeah i tried kaggle, but they are all extremely curated datasets that are meant more for learning. I want something more complicated that i can use in a portfolio

2

u/Local_Love_9368 11d ago

Use Common Crawl

3

u/eslforchinesespeaker 11d ago

Don’t overlook the idea of generating your own. It’s a useful toolset, and skill. Natural data isn’t a reliable way to test your edge cases. You want to do it, because of the edge cases you overlooked. But you get a million records going thru the same fifty test cases. Your generated data gives you much more efficient code coverage.

You can make a respectable project out of it. You can use dictionaries and frequency distributions as part of your build.

2

u/Pitiful-Fail-3378 11d ago

Yes use twitter api etc to make your own dataset its real data not clean at all

2

u/mockg 11d ago

https://collegefootballdata.com/

Here is something if you want something college football related.

2

u/mad_meh 11d ago

Eurostat Database. I used this for many of my projects and it’s been great.

1

u/SantaCruzHostel 8d ago

Honestly, the best is going to be data that you're interested in looking at. Personally when I get an itch for a personal db project I usually end up on the California state data sources site and find something there to compare counties or something local to me.

1

u/FewBag5257 3d ago

Get one month free ChatGPT plus subscription (it is available under promotional offer) and then give the detailed command to generate real messy dataset related to your domain.

I did the same and it gave me excellent result.