GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - Anand-DataEngineer/LeetCode-SQL50: A collection of LeetCode questions to ace the Data Engineering interview!

BranchesTags
Open more actions menu

Latest commit

 

History

264 Commits
264 Commits

Folders and files

NameName
Last commit message
Last commit date
0176-second-highest-salary
0176-second-highest-salary
 
 
0177-nth-highest-salary
0177-nth-highest-salary
 
 
0178-rank-scores
0178-rank-scores
 
 
0185-department-top-three-salaries
0185-department-top-three-salaries
 
 
0197-rising-temperature
0197-rising-temperature
 
 
0262-trips-and-users
0262-trips-and-users
 
 
0511-game-play-analysis-i
0511-game-play-analysis-i
 
 
0550-game-play-analysis-iv
0550-game-play-analysis-iv
 
 
0570-managers-with-at-least-5-direct-reports
0570-managers-with-at-least-5-direct-reports
 
 
0577-employee-bonus
0577-employee-bonus
 
 
0584-find-customer-referee
0584-find-customer-referee
 
 
0595-big-countries
0595-big-countries
 
 
0596-classes-with-at-least-5-students
0596-classes-with-at-least-5-students
 
 
0602-friend-requests-ii-who-has-the-most-friends
0602-friend-requests-ii-who-has-the-most-friends
 
 
0607-sales-person
0607-sales-person
 
 
0620-not-boring-movies
0620-not-boring-movies
 
 
0626-exchange-seats
0626-exchange-seats
 
 
0627-swap-sex-of-employees
0627-swap-sex-of-employees
 
 
1050-actors-and-directors-who-cooperated-at-least-three-times
1050-actors-and-directors-who-cooperated-at-least-three-times
 
 
1068-product-sales-analysis-i
1068-product-sales-analysis-i
 
 
1084-sales-analysis-iii
1084-sales-analysis-iii
 
 
1141-user-activity-for-the-past-30-days-i
1141-user-activity-for-the-past-30-days-i
 
 
1148-article-views-i
1148-article-views-i
 
 
1158-market-analysis-i
1158-market-analysis-i
 
 
1321-restaurant-growth
1321-restaurant-growth
 
 
1327-list-the-products-ordered-in-a-period
1327-list-the-products-ordered-in-a-period
 
 
1341-movie-rating
1341-movie-rating
 
 
1378-replace-employee-id-with-the-unique-identifier
1378-replace-employee-id-with-the-unique-identifier
 
 
1407-top-travellers
1407-top-travellers
 
 
1484-group-sold-products-by-the-date
1484-group-sold-products-by-the-date
 
 
1527-patients-with-a-condition
1527-patients-with-a-condition
 
 
1581-customer-who-visited-but-did-not-make-any-transactions
1581-customer-who-visited-but-did-not-make-any-transactions
 
 
1587-bank-account-summary-ii
1587-bank-account-summary-ii
 
 
1661-average-time-of-process-per-machine
1661-average-time-of-process-per-machine
 
 
1667-fix-names-in-a-table
1667-fix-names-in-a-table
 
 
1683-invalid-tweets
1683-invalid-tweets
 
 
1693-daily-leads-and-partners
1693-daily-leads-and-partners
 
 
1729-find-followers-count
1729-find-followers-count
 
 
1741-find-total-time-spent-by-each-employee
1741-find-total-time-spent-by-each-employee
 
 
1757-recyclable-and-low-fat-products
1757-recyclable-and-low-fat-products
 
 
1873-calculate-special-bonus
1873-calculate-special-bonus
 
 
1890-the-latest-login-in-2020
1890-the-latest-login-in-2020
 
 
1907-count-salary-categories
1907-count-salary-categories
 
 
1934-confirmation-rate
1934-confirmation-rate
 
 
1965-employees-with-missing-information
1965-employees-with-missing-information
 
 
2356-number-of-unique-subjects-taught-by-each-teacher
2356-number-of-unique-subjects-taught-by-each-teacher
 
 
3220-odd-and-even-transactions
3220-odd-and-even-transactions
 
 
3421-find-students-who-improved
3421-find-students-who-improved
 
 
3475-dna-pattern-recognition
3475-dna-pattern-recognition
 
 
3497-analyze-subscription-conversion
3497-analyze-subscription-conversion
 
 
3586-find-covid-recovery-patients
3586-find-covid-recovery-patients
 
 
3642-find-books-with-polarized-opinions
3642-find-books-with-polarized-opinions
 
 
3657-find-loyal-customers
3657-find-loyal-customers
 
 
3705-find-golden-hour-customers
3705-find-golden-hour-customers
 
 
3793-find-users-with-high-token-usage
3793-find-users-with-high-token-usage
 
 
README.md
README.md
 
 
stats.json
stats.json
 
 

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

# Title Difficulty Topics Solution
1 Recyclable and Low Fat Products Easy Filtering Solution
2 Find Customer Referee Easy Filtering
3 Big Countries Easy Filtering
4 Article Views I Easy Filtering
5 Invalid Tweets Easy Filtering
6 Replace Employee ID With The Unique Identifier Easy Joins
7 Product Sales Analysis I Easy Joins
8 Customer Who Visited but Did Not Make Any Transactions Easy Joins
9 Rising Temperature Easy Joins
10 Average Time of Process per Machine Easy Joins
11 Employee Bonus Easy Joins
12 Students and Examinations Easy Joins
13 Managers with at Least 5 Direct Reports Medium Joins
14 Confirmation Rate Easy Joins
15 Not Boring Movies Easy Basic Aggregation
16 Average Selling Price Easy Basic Aggregation
17 Project Employees I Easy Basic Aggregation
18 Percentage of Users Attended a Contest Easy Basic Aggregation
19 Queries Quality and Percentage Easy Basic Aggregation
20 Monthly Transactions I Medium Basic Aggregation
21 Immediate Food Delivery II Medium Basic Aggregation
22 Game Play Analysis IV Medium Basic Aggregation
23 Number of Unique Subjects Taught by Each Teacher Easy Sorting & Grouping
24 User Activity for the Past 30 Days I Easy Sorting & Grouping
25 Product Sales Analysis III Medium Sorting & Grouping
26 Classes More Than 5 Students Easy Sorting & Grouping
27 Find Followers Count Easy Sorting & Grouping
28 Biggest Single Number Easy Sorting & Grouping
29 Customers Who Bought All Products Medium Sorting & Grouping
30 The Number of Employees Which Report to Each Employee Easy Advanced Select & JOIN
31 Primary Department for Each Employee Easy Advanced Select & JOIN
32 Triangle Judgement Easy Advanced Select & JOIN
33 Consecutive Numbers Medium Subqueries
34 Product Price at a Given Date Medium Subqueries
35 Last Person to Fit in the Bus Medium Subqueries
36 Count Salary Categories Medium Subqueries
37 Second Highest Salary Medium Advanced String Functions / Regex / Clause
38 Group Sold Products By The Date Easy Advanced String Functions / Regex / Clause
39 List the Products Ordered in a Period Easy Advanced String Functions / Regex / Clause
40 Find Users With Valid E-Mails Easy Advanced String Functions / Regex / Clause
41 Patients With a Condition Easy Advanced String Functions / Regex / Clause
42 Delete Duplicate Emails Easy Advanced String Functions / Regex / Clause
43 Rearrange Products Table Easy Advanced String Functions / Regex / Clause
44 Fix Names in a Table Easy Advanced String Functions / Regex / Clause
45 Nth Highest Salary Medium Advanced String Functions / Regex / Clause
46 Employees Earning More Than Their Managers Easy Advanced String Functions / Regex / Clause
47 Duplicate Emails Easy Advanced String Functions / Regex / Clause
48 Customers Who Never Order Easy Advanced String Functions / Regex / Clause
49 Department Highest Salary Medium Advanced String Functions / Regex / Clause
50 Exchange Seats Medium Advanced 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
0177-nth-highest-salary
0178-rank-scores
0185-department-top-three-salaries
0197-rising-temperature
0262-trips-and-users
0511-game-play-analysis-i
0550-game-play-analysis-iv
0570-managers-with-at-least-5-direct-reports
0577-employee-bonus
0595-big-countries
0596-classes-with-at-least-5-students
0602-friend-requests-ii-who-has-the-most-friends
0607-sales-person
0620-not-boring-movies
0626-exchange-seats
0627-swap-sex-of-employees
1050-actors-and-directors-who-cooperated-at-least-three-times
1068-product-sales-analysis-i
1084-sales-analysis-iii
1141-user-activity-for-the-past-30-days-i
1148-article-views-i
1158-market-analysis-i
1321-restaurant-growth
1327-list-the-products-ordered-in-a-period
1341-movie-rating
1378-replace-employee-id-with-the-unique-identifier
1407-top-travellers
1484-group-sold-products-by-the-date
1527-patients-with-a-condition
1581-customer-who-visited-but-did-not-make-any-transactions
1587-bank-account-summary-ii
1661-average-time-of-process-per-machine
1667-fix-names-in-a-table
1683-invalid-tweets
1693-daily-leads-and-partners
1729-find-followers-count
1741-find-total-time-spent-by-each-employee
1873-calculate-special-bonus
1890-the-latest-login-in-2020
1907-count-salary-categories
1934-confirmation-rate
1965-employees-with-missing-information
2356-number-of-unique-subjects-taught-by-each-teacher
3220-odd-and-even-transactions
3421-find-students-who-improved
3475-dna-pattern-recognition
3497-analyze-subscription-conversion
3586-find-covid-recovery-patients

About

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

Topics

aggregationgroupbyhavingjoinsselectsortstringfunctionssubquerieswindowwindowfunctions

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402520 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.