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.
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.
- β 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
- 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
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
For every problem, I try to understand:
- What is the business requirement?
- Which SQL concepts solve the problem?
- Can the query be written in a simpler or more efficient way?
- What edge cases should be considered?
- What did I learn from the solution?
This approach helps me move beyond memorizing queries and build practical SQL skills.
| 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 |
- SQL
- PostgreSQL
- DuckDB
- VS Code
- Git & GitHub
| Difficulty | Completed |
|---|---|
| π’ Easy | 32 |
| π‘ Medium | 17 |
| π΄ Hard | 1 |
Overall Progress: 50/ 50
(This table will be updated as I progress through the study plan.)
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
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.
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!