This repository contains my personal solutions to various SQL problems on LeetCode, written entirely in MySQL, the default SQL dialect used on the platform. The solutions span across all levels of difficulty, including Easy, Medium, and Hard problems, though they are not organized by category. Instead, each file represents an individual solution with a clear file name corresponding to the problem title. These solutions reflect my learning process, understanding, and approach to solving practical SQL challenges using real-world-style datasets.
Each SQL script includes detailed inline comments explaining the logic behind the query, breaking down key components such as joins, filtering, aggregation, subqueries, common table expressions (CTEs), and window functions where relevant. This makes the repository a helpful reference for reviewing problem-solving strategies and understanding how to apply different SQL techniques effectively.
The main goal of maintaining this repository is to reinforce my own understanding of relational databases while also creating a resource that others—especially those preparing for technical interviews or learning SQL—may find useful. Since the problems are taken directly from LeetCode, they offer great examples of how SQL can be applied to structured data in a problem-solving context. The queries prioritize clarity and correctness, with occasional notes on performance or alternative approaches. This is an ongoing project and will continue to grow as I solve more problems and refine existing solutions.