Skip to content

LeetCode SQL Solutions This repository contains SQL solutions to LeetCode’s database problems. It's focused on writing efficient, readable queries for real-world database scenarios. Skills Practiced: SELECT, JOIN, GROUP BY, HAVING Subqueries & CTEs Window Functions Aggregate Functions Data Filtering & Ranking

Notifications You must be signed in to change notification settings

Gurkaran017/LeetCode-SQL-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode SQL Solutions

This repository includes my solutions to LeetCode database problems using SQL. The goal is to enhance my skills in writing efficient queries, understanding data structures in a relational database, and preparing for SQL-based interviews.

📚 Concepts Covered

  • Basic SELECT queries
  • Filtering with WHERE, IN, LIKE
  • Aggregate functions (COUNT, SUM, AVG, etc.)
  • GROUP BY and HAVING
  • JOINs (INNER, LEFT, RIGHT)
  • Subqueries
  • Common Table Expressions (CTEs)
  • Window Functions (ROW_NUMBER, RANK, etc.)

🧠 Why SQL?

SQL is a foundational skill for backend developers, data analysts, and engineers. Practicing through real-world-style problems builds fluency in:

  • Query writing
  • Optimization
  • Database design thinking

📂 Structure

Each SQL file includes:

  • Problem title and link (if applicable)
  • SQL query solution
  • Optional explanation as a comment

🔐 All queries follow standard SQL syntax and are tested on LeetCode’s platform.

About

LeetCode SQL Solutions This repository contains SQL solutions to LeetCode’s database problems. It's focused on writing efficient, readable queries for real-world database scenarios. Skills Practiced: SELECT, JOIN, GROUP BY, HAVING Subqueries & CTEs Window Functions Aggregate Functions Data Filtering & Ranking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published