An open API service indexing awesome lists of open source software.

https://github.com/amiorhmn/leetcode-sql-50-solutions

This repository contains my solutions to the problems in SQL 50 Study Plan of LeetCode.
https://github.com/amiorhmn/leetcode-sql-50-solutions

leetcode leetcode-solutions leetcode-sql leetcode-sql-50 sql

Last synced: 3 months ago
JSON representation

This repository contains my solutions to the problems in SQL 50 Study Plan of LeetCode.

Awesome Lists containing this project

README

        

# LeetCode-SQL-50-Solutions
This repository contains my solutions to the problems in [SQL 50 Study Plan of LeetCode](https://leetcode.com/studyplan/top-sql-50/).

| # | Title | Solution | Subtopic | Difficulty |
|---| ----- | -------- | -------- | ---------- |
|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|
|584|[Find Customer Referee](https://leetcode.com/problems/find-customer-referee/)|[MySQL](./584_Find_Customer_Referee.sql)|Select|Easy|
|595|[Big Countries](https://leetcode.com/problems/big-countries/)|[MySQL](./595_Big_Countries.sql)|Select|Easy|
|1148|[Article Views I](https://leetcode.com/problems/article-views-i/)|[MySQL](./1148_Article_Views_I.sql)|Select|Easy|
|1683|[Invalid Tweets](https://leetcode.com/problems/invalid-tweets/)|[MySQL](./1683_Invalid_Tweets.sql)|Select|Easy|
|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|
|1068|[Product Sales Analysis I](https://leetcode.com/problems/product-sales-analysis-i/)|[MySQL]()|Joins|Easy|
|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|
|197|[Rising Temperature](https://leetcode.com/problems/rising-temperature/)|[MySQL](./197_Rising_Temperature.sql)|Joins|Easy|
|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|
|577|[Employee Bonus](https://leetcode.com/problems/employee-bonus/)|[MySQL](./577_Employee_Bonus.sql)|Joins|Easy|
|1280|[Students and Examinations](https://leetcode.com/problems/students-and-examinations/)|[MySQL](./1280_Students_and_Examinations.sql)|Joins|Easy|
|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|
|1934|[Confirmation Rate](https://leetcode.com/problems/confirmation-rate/)|[MySQL](./1934_Confirmation_Rate.sql)|Joins|Medium|
|620|[Not Boring Movies](https://leetcode.com/problems/not-boring-movies/)|[MySQL](./620_Not_Boring_Movies.sql)|Aggregate Functions|Easy|
|1251|[Average Selling Price](https://leetcode.com/problems/average-selling-price/)|[MySQL](./1251_Average_Selling_Price.sql)|Aggregate Functions|Easy|
|1075|[Project Employees I](https://leetcode.com/problems/project-employees-i/)|[MySQL](./1075_Project_Employees_I.sql)|Aggregate Functions|Easy|
|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|
|1211|[Queries Quality and Percentage](https://leetcode.com/problems/queries-quality-and-percentage/)|[MySQL](./1211_Queries_Quality_and_Percentage.sql)|Aggregate Functions|Easy|
|1193|[Monthly Transactions I](https://leetcode.com/problems/monthly-transactions-i/)|[MySQL](./1193_Monthly_Transactions_I.sql)|Aggregate Functions|Medium|
|1174|[Immediate Food Delivery II](https://leetcode.com/problems/immediate-food-delivery-ii/)|[MySQL](./1174_Immediate_Food_Delivery_II.sql)|Aggregate Functions|Medium|
|550|[Game Play Analysis IV](https://leetcode.com/problems/game-play-analysis-iv/)|[MySQL](./550_Game_Play_Analysis_IV.sql)|Aggregate Functions|Medium|
|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|
|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|
|1070|[Product Sales Analysis III](https://leetcode.com/problems/product-sales-analysis-iii/)|[MySQL](./1070_Product_Sales_Analysis_III.sql)|Sorting and Grouping|Medium|
|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|
|1729|[Find Followers Count](https://leetcode.com/problems/find-followers-count/)|[MySQL](./1729_Find_Followers_Count.sql)|Sorting and Grouping|Easy|
|619|[Biggest Single Number](https://leetcode.com/problems/biggest-single-number/)|[MySQL](./619_Biggest_Single_Number.sql)|Sorting and Grouping|Easy|
|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|
|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|
|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|
|610|[Triangle Judgement](https://leetcode.com/problems/triangle-judgement/)|[MySQL](./610_Triangle_Judgement.sql)|Advanced Select and Joins|Easy|
|180|[Consecutive Numbers](https://leetcode.com/problems/consecutive-numbers/)|[MySQL](./180_Consecutive_Numbers.sql)|Advanced Select and Joins|Medium|
|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|
|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|
|1907|[Count Salary Categories](https://leetcode.com/problems/count-salary-categories/)|[MySQL](./1907_Count_Salary_Categories.sql)|Advanced Select and Joins|Medium|
|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|
|626|[Exchange Seats](https://leetcode.com/problems/exchange-seats/)|[MySQL](./626_Exchange_Seats.sql)|Subqueries|Medium|
|1341|[Movie Rating](https://leetcode.com/problems/movie-rating/)|[MySQL](./1341_Movie_Rating.sql)|Subqueries|Medium|
|1321|[Restaurant Growth](https://leetcode.com/problems/restaurant-growth/)|[MySQL](./1321_Restaurant_Growth.sql)|Subqueries|Medium|
|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|
|585|[Investments in 2016](https://leetcode.com/problems/investments-in-2016/)|[MySQL](./585_Investments_in_2016.sql)|Subqueries|Medium|
|185|[Department Top Three Salaries](https://leetcode.com/problems/department-top-three-salaries/)|[MySQL](./185_Department_Top_Three_Salaries.sql)|Subqueries|Hard|
|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|
|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|
|196|[Delete Duplicate Emails](https://leetcode.com/problems/delete-duplicate-emails/)|[MySQL](./196_Delete_Duplicate_Emails.sql)|Advanced String Functions / Regex / Clause|Easy|
|176|[Second Highest Salary](https://leetcode.com/problems/second-highest-salary/)|[MySQL](./176_Second_Highest_Salary.sql)|Advanced String Functions / Regex / Clause|Medium|
|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|
|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|
|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|