Skip to content

About

Leetcode Study Plan SQL 50 Questions

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

69 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 LeetCode SQL 50 Study Plan

A structured repository documenting my journey through the LeetCode SQL 50 Study Plan to strengthen SQL fundamentals, analytical thinking, and problem-solving skills for Data Engineering interviews.


📌 About This Repository

This repository contains my solutions to the LeetCode SQL 50 study plan. Rather than simply solving problems, I focus on:

  • Understanding the business problem
  • Writing clean and readable SQL
  • Exploring multiple approaches whenever possible
  • Learning SQL concepts used in real-world data engineering
  • Documenting mistakes and lessons learned

This repository serves as both my interview preparation notebook and a reference for future SQL projects.


🎯 Goals

  • ✅ Master SQL fundamentals
  • ✅ Improve analytical problem-solving
  • ✅ Prepare for Data Engineering interviews
  • ✅ Learn efficient query writing
  • ✅ Build confidence with joins, aggregations, CTEs, and window functions

🛠 Skills Practiced

  • SELECT Statements
  • Filtering & Sorting
  • Aggregate Functions
  • GROUP BY & HAVING
  • CASE Expressions
  • INNER / LEFT / RIGHT / CROSS JOIN
  • Subqueries
  • Common Table Expressions (CTEs)
  • Window Functions
  • Date & Time Functions
  • String Functions
  • Mathematical Functions
  • Conditional Aggregation
  • Ranking Functions
  • Set Operations
  • Data Analysis Techniques

📂 Repository Structure

LeetCode-SQL-50/
│
├── Easy/
│   ├── 0175_Combine_Two_Tables.sql
│   ├── 0181_Employees_Earning_More_Than_Their_Managers.sql
│   └── ...
│
├── Medium/
│   ├── 0550_Game_Play_Analysis_IV.sql
│   ├── 1251_Average_Selling_Price.sql
│   └── ...
│
├── Hard/
│   └── ...
│
└── You are here

📈 Learning Approach

For every problem, I try to understand:

  1. What is the business requirement?
  2. Which SQL concepts solve the problem?
  3. Can the query be written in a simpler or more efficient way?
  4. What edge cases should be considered?
  5. What did I learn from the solution?

This approach helps me move beyond memorizing queries and build practical SQL skills.


📚 Concepts Covered

Category Topics
Basic SQL SELECT, WHERE, ORDER BY
Aggregation COUNT, SUM, AVG, MIN, MAX
Grouping GROUP BY, HAVING
Joins INNER, LEFT, RIGHT, SELF JOIN
Subqueries Scalar, Correlated
CTEs Recursive & Non-Recursive
Window Functions ROW_NUMBER, RANK, DENSE_RANK, LEAD, LAG, FIRST_VALUE
Conditional Logic CASE WHEN
Date Functions DATE_TRUNC, EXTRACT, TO_CHAR
Advanced SQL Analytical Queries, Ranking, Conditional Aggregation

💻 Environment

  • SQL
  • PostgreSQL
  • DuckDB
  • VS Code
  • Git & GitHub

📊 Progress Tracker

Difficulty Completed
🟢 Easy 32
🟡 Medium 17
🔴 Hard 1

Overall Progress: 50/ 50

(This table will be updated as I progress through the study plan.)


🎓 What I Learned

Throughout this challenge, I am improving my understanding of:

  • Writing efficient SQL queries
  • Solving analytical problems
  • Query optimization
  • Window functions
  • Data transformations
  • Business-oriented SQL thinking

🚀 Why This Repository?

As an aspiring Data Engineer, I believe SQL is one of the most important technical skills. This repository reflects my commitment to continuous learning and building a strong foundation for designing and analyzing data pipelines.


📬 Connect With Me

If you're interested in discussing SQL, Data Engineering, or sharing feedback, feel free to connect with me.

⭐ If you found this repository useful, consider giving it a star!

About

Leetcode Study Plan SQL 50 Questions

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors