// sql

Query Lab

2025 1 min read sqlwebapp
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
  • LinkedIn

๐Ÿ“ File Overview

FilePurpose
index.htmlMain interface layout
style.cssResponsive styles and layout
script.jsHandles challenge loading, SQL validation, rendering logic
challenges.jsonFull challenge dataset with schema, expected results, and answers
image.pngCheat sheet image preview (clickable with modal zoom)