Watch a query run.
SELECT V.VENUE_NAME, S.FILM_TITLE, S.SCREENING_DAYFROM SCREENING SJOIN VENUE V ON S.VENUE_ID = V.VENUE_ID;Lessons
Nineteen lessons.
Each lesson is one query over a small fictional dataset. Open one and step through it.
Foundations
1. Choose result columnsHarbor ferry routes2. Filter individual rows with WHERECoastal research survey3. Combine conditionsHarbor ferry routes4. Calculate and sortHarbor ferry routes5. Match patterns and rangesIndependent film festival6. Keep unique results with DISTINCTIndependent film festival7. Label a combined text fieldNight observatory8. Summarize a set of rowsCoastal research survey9. Find missing valuesCoastal research survey10. Aggregate within groupsIndependent film festival11. Filter completed groups with HAVINGOrchard plot map
Combining data
12. Match related rows with JOINIndependent film festival13. Match tables through WHERENight observatory14. Preserve unmatched rowsIndependent film festival15. Trace a complete query pipelineIndependent film festival16. Chain multiple relationshipsCoastal research survey17. Give one table two rolesOrchard plot map18. Stack compatible resultsIndependent film festival19. Feed one query into anotherHarbor ferry routes
Schema
Your own schema works too.
Paste the CREATE TABLE statements from your database and step through queries over your own tables.
- Exports from PostgreSQL, SQL Server, MySQL and Oracle paste in as they are.
- Everything runs on SQLite compiled to WebAssembly, inside the tab.
- Nothing you type is sent anywhere.
CREATE TABLE venue ( venue_id integer PRIMARY KEY, venue_name varchar(30) NOT NULL, capacity integer NOT NULL);CREATE TABLE screening ( screening_id integer PRIMARY KEY, film_title varchar(40) NOT NULL, venue_id integer REFERENCES venue (venue_id));- PostgreSQL
- SQL Server
- MySQL
- Oracle
- SQLite
Start
Open the tracer.
It opens on a four-table join you can step through right now. No account, nothing to install.