// sql
Query Lab
QueryLab-reg / QueryLab-reg.github.io
QueryLab
QueryLab is a browser-based SQL playground for learning and practicing SQL through interactive challenges. Uusers can:
- View structured SQL challenges with sample data
- Write and execute queries directly in the browser (powered by SQLite via sql.js)
- Explore step-by-step explanations and before/after tables
- Reference a built-in cheat sheet preview while solving
โจ Features
- ๐ง 20+ curated SQL challenges (Beginner to Intermediate)
- ๐ Interactive schema and table view
- ๐ก Visual breakdown of solution steps
- ๐ป Runs entirely in-browser (no backend)
- ๐งพ Linked cheat sheet overlay for quick SQL reference
๐ Technologies
- HTML5 + CSS3
- JavaScript (Vanilla)
- sql.js for SQLite execution
- JSON-based challenge system
- Font Awesome for header icons
๐ Live Demo
Check it out live:
๐ https://querylab-reg.github.io
๐ Connect
- Portfolio
- GitHub
๐ File Overview
| File | Purpose |
|---|---|
index.html | Main interface layout |
style.css | Responsive styles and layout |
script.js | Handles challenge loading, SQL validation, rendering logic |
challenges.json | Full challenge dataset with schema, expected results, and answers |
image.png | Cheat sheet image preview (clickable with modal zoom) |