Skip to content

smmiloy/sqlplayground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

SQL Playground Questions

Screenshot from 2026-05-16 19-04-09

GitHub stars GitHub issues PRs Welcome

Official question repository for SQL Playground Online

This public repository contains SQL practice questions used in the SQL Playground Online website.

Users can browse the questions, suggest new ones via pull requests, report issues, and help improve existing questions.


Purpose

  • Make the question bank public and transparent
  • Allow community contributions such as new questions and improvements
  • Serve as a support and backup repository for the main application

Difficulty Levels

  • Easy — Basic SELECT, filtering, aggregation, and dates
  • Medium — Joins, subqueries, and grouping
  • Hard — Window functions, self-joins, and advanced queries

How to Contribute

  1. Fork this repository
  2. Create a new branch
  3. Add or modify questions
  4. Submit a pull request

You can contribute by:

  • Adding new SQL questions
  • Improving descriptions or sample data
  • Fixing bugs or unclear questions
  • Suggesting better solutions

Question Format

Each question is stored as a JavaScript object with the following fields:

  • id — Unique identifier
  • title — Question title
  • difficulty — Easy / Medium / Hard
  • description — Problem statement
  • constraints — Output requirements and rules
  • tags — Array of tags
  • solutionQuery — Correct SQL solution
  • tables — Table schemas and sample data

Guidelines for New Questions

  • Write clear and unambiguous problem statements
  • Provide realistic sample data, preferably 8+ rows
  • Include proper constraints such as ordering and column names
  • Make sure the solution query is correct
  • Cover different SQL concepts

License

MIT License — Feel free to use these questions in your own projects with attribution.


Happy SQL Learning!

Main Application: SQL Playground Online

Made with ❤️ for the developer community.

About

Official Question Repository for SQL Playground Online

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors