r/learnSQL • u/captdirtstarr • Mar 11 '26
Online Practice DB?
Hi! I'm learning SQL, and wondering if there's a public practice database out there? Web would be fantastic!
10
Upvotes
r/learnSQL • u/captdirtstarr • Mar 11 '26
Hi! I'm learning SQL, and wondering if there's a public practice database out there? Web would be fantastic!
3
u/SuperbAd8266 Mar 11 '26
W3schools
3
u/hobbyoftakingphoto Mar 11 '26
You can get free databases from MySQL site with millions of rows which you can import and run locally.
2
u/leogodin217 Mar 11 '26
So I played with this over the weekend. Simulated UK NHS hospital data. The DB is fairly extensive 27 tables. Runs in your browser. Practice exercises need a lot of work, but if you want a db to explore and practice on, this is definitely one.
I highly recommend you learn how to do stuff locally. Docker, Git, etc. These are skills everyone in tech needs. But I understand how intimidating it can be to start.
FYI - W3schools, as /SuperbAd8266 proposed, is the first resource people learning SQL should check out. What I built is for practicing.
In Browser DB: https://leogodin217.github.io/nhs_sql_practice_data/
Github Repo with list of tables and other info: https://github.com/leogodin217/nhs_sql_practice_data
1
u/jcradio Mar 11 '26
You can get all kinds of databases to use for free. Depends on what you use. SQL Server has the free SQL Express and Developer editions. There's also Postgres, and MariaDB to name a couple.
1
u/qazplm903 Mar 11 '26
Mode.com is great for this!
1
u/urstrulyshiva Mar 11 '26
sqlpractice.com
1
u/secretasphalt Mar 12 '26
SQL Noir
1
u/Prudent-Buyer-5956 Mar 12 '26
Use the we3schools adventureworks database questions.
1
u/shockjaw Mar 12 '26
DuckDB has a database that runs in the browser. Super simple to set up locally too.
1
u/SQLDevDBA Mar 13 '26
Oracle and Microsoft both offer free versions of their databases online with no downloads or installs. Both come with Sample data, or you can load your own. They both have in-browser IDEs as well so you can work with the from any browser. You’re up and running in seconds to minutes.
I made a quick video about them I can send you if you’d like, but here are the sites:
Azure SQL DB Free Tier: https://learn.microsoft.com/en-us/azure/azure-sql/database/free-offer?view=azuresql
Oracle Live SQL: https://livesql.oracle.com