SQL is the language you use to ask a database questions, and it is the single most portable skill in data analysis. Every reporting tool, every data warehouse, and every analytics platform either speaks SQL or hides SQL underneath. Once you can write a SELECT statement, you can get an answer out of almost any system you are handed.
This playground allows you to write real SQL against a real dataset with a reset button that puts everything back if you break it.
The dataset belongs to Daily Grind, a coffee chain with eight stores across the UK. Six tables cover stores, staff, products, customers, orders, and the individual items on each order. These are the same shapes you meet in real analytical work: a transaction table, some reference tables, and foreign keys tying them together.
Start by looking around the data, then build up from a single SELECT to filtering, sorting, counting, grouping, and joining two tables together. This playground provides questions requiring you to apply each of these skills as you progress.
Upon completion of this beginner-level lab, you will be able to:
SELECT, WHERE, ORDER BY, and LIMITCOUNT, SUM, AVG, and ROUNDGROUP BY and filter groups with HAVINGJOIN using a foreign keyFamiliarity with the following will be beneficial but is not required:
No prior SQL experience is needed. Nothing is installed on your computer, and no database credentials are required.