Skip to content

About

Basic to Advance Leetcode SQL 50 Questions

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

90 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊 SQL-50-Leetcode

This repository contains solutions for the Top 50 SQL Questions from LeetCode's SQL 50 Study Plan. It is designed to help you build and strengthen your SQL skills through real coding problems.

💡 Ideal for mastering SQL concepts such as JOIN, GROUP BY, WINDOW FUNCTIONS, SUBQUERIES, and more.


🔗 Study Plan Link

📘 LeetCode SQL 50 Study Plan


📁 Folder Structure

Each folder is named using the LeetCode problem number and title (e.g., 1135-customers-who-bought-all-products). Inside each folder, you’ll find:

  • solution.sql – Contains the SQL query solving the problem.
  • (Optional) Comments explaining logic or approach.

🧠 Topics Covered

  • Basic SELECT statements
  • JOIN (INNER, LEFT, RIGHT)
  • GROUP BY and HAVING
  • Aggregate functions: COUNT, SUM, AVG, etc.
  • Subqueries
  • UNION
  • Window functions: RANK(), DENSE_RANK(), ROW_NUMBER()
  • Common Table Expressions (CTEs)

About

Basic to Advance Leetcode SQL 50 Questions

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors