Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

97 Commits

Repository files navigation

📊 LeetCode SQL 50 — Study Plan Solutions

Solutions to LeetCode's SQL 50 study plan, solved daily and pushed automatically via LeetHub.


🚀 About

This repository tracks my progress through LeetCode's SQL 50 study plan — a curated set of 50 problems covering the core SQL concepts needed for interviews: joins, subqueries, aggregation, window functions, and string/date manipulation.

  • 🗓️ Solving daily
  • 🔁 Auto-synced from LeetCode via LeetHub
  • 🎯 Goal: complete all 50 problems

📈 Progress

Progress


🗂️ Problems

#TitleDifficultyTopicsSolution
1Recyclable and Low Fat ProductsEasyFilteringSolution
2Find Customer RefereeEasyFiltering
3Big CountriesEasyFiltering
4Article Views IEasyFiltering
5Invalid TweetsEasyFiltering
6Replace Employee ID With The Unique IdentifierEasyJoins
7Product Sales Analysis IEasyJoins
8Customer Who Visited but Did Not Make Any TransactionsEasyJoins
9Rising TemperatureEasyJoins
10Average Time of Process per MachineEasyJoins
11Employee BonusEasyJoins
12Students and ExaminationsEasyJoins
13Managers with at Least 5 Direct ReportsMediumJoins
14Confirmation RateEasyJoins
15Not Boring MoviesEasyBasic Aggregation
16Average Selling PriceEasyBasic Aggregation
17Project Employees IEasyBasic Aggregation
18Percentage of Users Attended a ContestEasyBasic Aggregation
19Queries Quality and PercentageEasyBasic Aggregation
20Monthly Transactions IMediumBasic Aggregation
21Immediate Food Delivery IIMediumBasic Aggregation
22Game Play Analysis IVMediumBasic Aggregation
23Number of Unique Subjects Taught by Each TeacherEasySorting & Grouping
24User Activity for the Past 30 Days IEasySorting & Grouping
25Product Sales Analysis IIIMediumSorting & Grouping
26Classes More Than 5 StudentsEasySorting & Grouping
27Find Followers CountEasySorting & Grouping
28Biggest Single NumberEasySorting & Grouping
29Customers Who Bought All ProductsMediumSorting & Grouping
30The Number of Employees Which Report to Each EmployeeEasyAdvanced Select & JOIN
31Primary Department for Each EmployeeEasyAdvanced Select & JOIN
32Triangle JudgementEasyAdvanced Select & JOIN
33Consecutive NumbersMediumSubqueries
34Product Price at a Given DateMediumSubqueries
35Last Person to Fit in the BusMediumSubqueries
36Count Salary CategoriesMediumSubqueries
37Second Highest SalaryMediumAdvanced String Functions / Regex / Clause
38Group Sold Products By The DateEasyAdvanced String Functions / Regex / Clause
39List the Products Ordered in a PeriodEasyAdvanced String Functions / Regex / Clause
40Find Users With Valid E-MailsEasyAdvanced String Functions / Regex / Clause
41Patients With a ConditionEasyAdvanced String Functions / Regex / Clause
42Delete Duplicate EmailsEasyAdvanced String Functions / Regex / Clause
43Rearrange Products TableEasyAdvanced String Functions / Regex / Clause
44Fix Names in a TableEasyAdvanced String Functions / Regex / Clause
45Nth Highest SalaryMediumAdvanced String Functions / Regex / Clause
46Employees Earning More Than Their ManagersEasyAdvanced String Functions / Regex / Clause
47Duplicate EmailsEasyAdvanced String Functions / Regex / Clause
48Customers Who Never OrderEasyAdvanced String Functions / Regex / Clause
49Department Highest SalaryMediumAdvanced String Functions / Regex / Clause
50Exchange SeatsMediumAdvanced String Functions / Regex / Clause

✅ = solved · Solution column links to the folder once pushed by LeetHub.


🛠️ Tech

  • Language: SQL (MySQL dialect, as used by LeetCode)
  • Sync tool:LeetHub 2.0

📌 Notes

  • Each problem folder is auto-created by LeetHub and contains the accepted solution along with the problem statement.
  • This repo is for personal practice and tracking — solutions may not always be the most optimal, but reflect my learning process.

⭐ If you're also grinding SQL 50, feel free to fork this and track your own progress!

LeetCode Topics

Database

0176-second-highest-salary
0197-rising-temperature
0570-managers-with-at-least-5-direct-reports
0577-employee-bonus
0595-big-countries
1068-product-sales-analysis-i
1148-article-views-i
1321-restaurant-growth
1327-list-the-products-ordered-in-a-period
1378-replace-employee-id-with-the-unique-identifier
1484-group-sold-products-by-the-date
1527-patients-with-a-condition
1581-customer-who-visited-but-did-not-make-any-transactions
1661-average-time-of-process-per-machine
1667-fix-names-in-a-table
1683-invalid-tweets
1907-count-salary-categories

About

A collection of LeetCode questions to ace the Data Engineering interview!

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors