{"id":25930910,"url":"https://github.com/amiorhmn/leetcode-sql-50-solutions","last_synced_at":"2026-03-08T13:34:30.073Z","repository":{"id":263178151,"uuid":"889110990","full_name":"amiorhmn/LeetCode-SQL-50-Solutions","owner":"amiorhmn","description":"This repository contains my solutions to the problems in SQL 50 Study Plan of LeetCode.","archived":false,"fork":false,"pushed_at":"2025-02-20T17:32:45.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T18:37:19.651Z","etag":null,"topics":["leetcode","leetcode-solutions","leetcode-sql","leetcode-sql-50","sql"],"latest_commit_sha":null,"homepage":"https://leetcode.com/u/amiorhmn/","language":"SQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amiorhmn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-15T16:22:28.000Z","updated_at":"2025-02-20T17:32:48.000Z","dependencies_parsed_at":"2024-11-16T21:17:12.987Z","dependency_job_id":null,"html_url":"https://github.com/amiorhmn/LeetCode-SQL-50-Solutions","commit_stats":null,"previous_names":["amiorhmn/leetcode-sql-50-solutions"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiorhmn%2FLeetCode-SQL-50-Solutions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiorhmn%2FLeetCode-SQL-50-Solutions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiorhmn%2FLeetCode-SQL-50-Solutions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiorhmn%2FLeetCode-SQL-50-Solutions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amiorhmn","download_url":"https://codeload.github.com/amiorhmn/LeetCode-SQL-50-Solutions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241754185,"owners_count":20014440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["leetcode","leetcode-solutions","leetcode-sql","leetcode-sql-50","sql"],"created_at":"2025-03-03T23:23:34.394Z","updated_at":"2026-03-08T13:34:29.994Z","avatar_url":"https://github.com/amiorhmn.png","language":"SQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LeetCode-SQL-50-Solutions\nThis repository contains my solutions to the problems in [SQL 50 Study Plan of LeetCode](https://leetcode.com/studyplan/top-sql-50/).\n\n| # | Title | Solution | Subtopic | Difficulty |\n|---| ----- | -------- | -------- | ---------- |\n|1757|[Recyclable and Low Fat Products](https://leetcode.com/problems/recyclable-and-low-fat-products/)|[MySQL](./1757_Recyclable_and_Low_Fat_Products.sql)|Select|Easy|\n|584|[Find Customer Referee](https://leetcode.com/problems/find-customer-referee/)|[MySQL](./584_Find_Customer_Referee.sql)|Select|Easy|\n|595|[Big Countries](https://leetcode.com/problems/big-countries/)|[MySQL](./595_Big_Countries.sql)|Select|Easy|\n|1148|[Article Views I](https://leetcode.com/problems/article-views-i/)|[MySQL](./1148_Article_Views_I.sql)|Select|Easy|\n|1683|[Invalid Tweets](https://leetcode.com/problems/invalid-tweets/)|[MySQL](./1683_Invalid_Tweets.sql)|Select|Easy|\n|1378|[Replace Employee ID With The Unique Identifier](https://leetcode.com/problems/replace-employee-id-with-the-unique-identifier/)|[MySQL](./1378_Replace_Employee_ID_With_The_Unique_Identifier.sql)|Joins|Easy|\n|1068|[Product Sales Analysis I](https://leetcode.com/problems/product-sales-analysis-i/)|[MySQL]()|Joins|Easy|\n|1581|[Customer Who Visited but Did Not Make Any Transactions](https://leetcode.com/problems/customer-who-visited-but-did-not-make-any-transactions/)|[MySQL](./1581_Customer_Who_Visited_but_Did_Not_Make_Any_Transactions.sql)|Joins|Easy|\n|197|[Rising Temperature](https://leetcode.com/problems/rising-temperature/)|[MySQL](./197_Rising_Temperature.sql)|Joins|Easy|\n|1661|[Average Time of Process per Machine](https://leetcode.com/problems/average-time-of-process-per-machine/)|[MySQL](./1661_Average_Time_of_Process_per_Machine.sql)|Joins|Easy|\n|577|[Employee Bonus](https://leetcode.com/problems/employee-bonus/)|[MySQL](./577_Employee_Bonus.sql)|Joins|Easy|\n|1280|[Students and Examinations](https://leetcode.com/problems/students-and-examinations/)|[MySQL](./1280_Students_and_Examinations.sql)|Joins|Easy|\n|570|[Managers with at Least 5 Direct Reports](https://leetcode.com/problems/managers-with-at-least-5-direct-reports/)|[MySQL](./570_Managers_with_at_Least_5_Direct_Reports.sql)|Joins|Medium|\n|1934|[Confirmation Rate](https://leetcode.com/problems/confirmation-rate/)|[MySQL](./1934_Confirmation_Rate.sql)|Joins|Medium|\n|620|[Not Boring Movies](https://leetcode.com/problems/not-boring-movies/)|[MySQL](./620_Not_Boring_Movies.sql)|Aggregate Functions|Easy|\n|1251|[Average Selling Price](https://leetcode.com/problems/average-selling-price/)|[MySQL](./1251_Average_Selling_Price.sql)|Aggregate Functions|Easy|\n|1075|[Project Employees I](https://leetcode.com/problems/project-employees-i/)|[MySQL](./1075_Project_Employees_I.sql)|Aggregate Functions|Easy|\n|1633|[Percentage of Users Attended a Contest](https://leetcode.com/problems/percentage-of-users-attended-a-contest/)|[MySQL](./1633_Percentage_of_Users_Attended_a_Contest.sql)|Aggregate Functions|Easy|\n|1211|[Queries Quality and Percentage](https://leetcode.com/problems/queries-quality-and-percentage/)|[MySQL](./1211_Queries_Quality_and_Percentage.sql)|Aggregate Functions|Easy|\n|1193|[Monthly Transactions I](https://leetcode.com/problems/monthly-transactions-i/)|[MySQL](./1193_Monthly_Transactions_I.sql)|Aggregate Functions|Medium|\n|1174|[Immediate Food Delivery II](https://leetcode.com/problems/immediate-food-delivery-ii/)|[MySQL](./1174_Immediate_Food_Delivery_II.sql)|Aggregate Functions|Medium|\n|550|[Game Play Analysis IV](https://leetcode.com/problems/game-play-analysis-iv/)|[MySQL](./550_Game_Play_Analysis_IV.sql)|Aggregate Functions|Medium|\n|2356|[Number of Unique Subjects Taught by Each Teacher](https://leetcode.com/problems/number-of-unique-subjects-taught-by-each-teacher/)|[MySQL](./2356_Number_of_Unique_Subjects_Taught_by_Each_Teacher.sql)|Sorting and Grouping|Easy|\n|1141|[User Activity for the Past 30 Days I](https://leetcode.com/problems/user-activity-for-the-past-30-days-i/)|[MySQL](./1141_User_Activity_for_the_Past_30_Days_I.sql)|Sorting and Grouping|Easy|\n|1070|[Product Sales Analysis III](https://leetcode.com/problems/product-sales-analysis-iii/)|[MySQL](./1070_Product_Sales_Analysis_III.sql)|Sorting and Grouping|Medium|\n|596|[Classes More Than 5 Students](https://leetcode.com/problems/classes-more-than-5-students/)|[MySQL](./596_Classes_More_Than_5_Students.sql)|Sorting and Grouping|Easy|\n|1729|[Find Followers Count](https://leetcode.com/problems/find-followers-count/)|[MySQL](./1729_Find_Followers_Count.sql)|Sorting and Grouping|Easy|\n|619|[Biggest Single Number](https://leetcode.com/problems/biggest-single-number/)|[MySQL](./619_Biggest_Single_Number.sql)|Sorting and Grouping|Easy|\n|1045|[Customers Who Bought All Products](https://leetcode.com/problems/customers-who-bought-all-products/)|[MySQL](./1045_Customers_Who_Bought_All_Products.sql)|Sorting and Grouping|Medium|\n|1731|[The Number of Employees Which Report to Each Employee](https://leetcode.com/problems/the-number-of-employees-which-report-to-each-employee/)|[MySQL](./1731_The_Number_of_Employees_Which_Report_to_Each_Employee.sql)|Advanced Select and Joins|Easy|\n|1789|[Primary Department for Each Employee](https://leetcode.com/problems/primary-department-for-each-employee/)|[MySQL](./1789_Primary_Department_for_Each_Employee.sql)|Advanced Select and Joins|Easy|\n|610|[Triangle Judgement](https://leetcode.com/problems/triangle-judgement/)|[MySQL](./610_Triangle_Judgement.sql)|Advanced Select and Joins|Easy|\n|180|[Consecutive Numbers](https://leetcode.com/problems/consecutive-numbers/)|[MySQL](./180_Consecutive_Numbers.sql)|Advanced Select and Joins|Medium|\n|1164|[Product Price at a Given Date](https://leetcode.com/problems/product-price-at-a-given-date/)|[MySQL](./1164_Product_Price_at_a_Given_Date.sql)|Advanced Select and Joins|Medium|\n|1204|[Last Person to Fit in the Bus](https://leetcode.com/problems/last-person-to-fit-in-the-bus/)|[MySQL](./1204_Last_Person_to_Fit_in_the_Bus.sql)|Advanced Select and Joins|Medium|\n|1907|[Count Salary Categories](https://leetcode.com/problems/count-salary-categories/)|[MySQL](./1907_Count_Salary_Categories.sql)|Advanced Select and Joins|Medium|\n|1978|[Employees Whose Manager Left the Company](https://leetcode.com/problems/employees-whose-manager-left-the-company/)|[MySQL](./1978_Employees_Whose_Manager_Left_the_Company.sql)|Subqueries|Easy|\n|626|[Exchange Seats](https://leetcode.com/problems/exchange-seats/)|[MySQL](./626_Exchange_Seats.sql)|Subqueries|Medium|\n|1341|[Movie Rating](https://leetcode.com/problems/movie-rating/)|[MySQL](./1341_Movie_Rating.sql)|Subqueries|Medium|\n|1321|[Restaurant Growth](https://leetcode.com/problems/restaurant-growth/)|[MySQL](./1321_Restaurant_Growth.sql)|Subqueries|Medium|\n|602|[Friend Requests II: Who Has the Most Friends](https://leetcode.com/problems/friend-requests-ii-who-has-the-most-friends/)|[MySQL](./602_Friend_Requests_II_Who_Has_the_Most_Friends.sql)|Subqueries|Medium|\n|585|[Investments in 2016](https://leetcode.com/problems/investments-in-2016/)|[MySQL](./585_Investments_in_2016.sql)|Subqueries|Medium|\n|185|[Department Top Three Salaries](https://leetcode.com/problems/department-top-three-salaries/)|[MySQL](./185_Department_Top_Three_Salaries.sql)|Subqueries|Hard|\n|1667|[Fix Names in a Table](https://leetcode.com/problems/fix-names-in-a-table/)|[MySQL](./1667_Fix_Names_in_a_Table.sql)|Advanced String Functions / Regex / Clause|Easy|\n|1527|[Patients With a Condition](https://leetcode.com/problems/patients-with-a-condition/)|[MySQL](./1527_Patients_With_a_Condition.sql)|Advanced String Functions / Regex / Clause|Easy|\n|196|[Delete Duplicate Emails](https://leetcode.com/problems/delete-duplicate-emails/)|[MySQL](./196_Delete_Duplicate_Emails.sql)|Advanced String Functions / Regex / Clause|Easy|\n|176|[Second Highest Salary](https://leetcode.com/problems/second-highest-salary/)|[MySQL](./176_Second_Highest_Salary.sql)|Advanced String Functions / Regex / Clause|Medium|\n|1484|[Group Sold Products By The Date](https://leetcode.com/problems/group-sold-products-by-the-date/)|[MySQL](./1484_Group_Sold_Products_By_The_Date.sql)|Advanced String Functions / Regex / Clause|Easy|\n|1327|[List the Products Ordered in a Period](https://leetcode.com/problems/list-the-products-ordered-in-a-period/)|[MySQL](./1327_List_the_Products_Ordered_in_a_Period.sql)|Advanced String Functions / Regex / Clause|Easy|\n|1517|[Find Users With Valid E-Mails](https://leetcode.com/problems/find-users-with-valid-e-mails/)|[MySQL](./1517_Find_Users_With_Valid_E-Mails.sql)|Advanced String Functions / Regex / Clause|Easy|","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famiorhmn%2Fleetcode-sql-50-solutions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famiorhmn%2Fleetcode-sql-50-solutions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famiorhmn%2Fleetcode-sql-50-solutions/lists"}