readme.md

April 30, 2022 · View on GitHub

My solutions to Leetcode Database Problems

I will put my solutions to Leetcode Database Problems in this repo.

Please feel free to contact me if you have any questions with this repo:)

email: liuyubobobo@gmail.com


大家好,欢迎大家来到我的 Leetcode 数据库题解代码仓。在这个代码仓中。如果对代码仓有任何问题,欢迎联系我:)

电子邮件liuyubobobo@gmail.com

知乎: 刘宇波 http://www.zhihu.com/people/liuyubobobo

知乎专栏:是不是很酷 https://zhuanlan.zhihu.com/liuyubobobo

个人公众号:是不是很酷:)

QRCode

知识星球(免费)

ZSXQ


其他相关代码仓


Problems

IDProblemOfficial
Solution
MySQLComments
175Combine Two TablessolutionMySQL
176Second Highest SalarysolutionMySQL
181Employees Earning More Than Their ManagerssolutionMySQL
182Duplicate EmailssolutionMySQL
183Customers Who Never OrdersolutionMySQL
184Department Highest SalarysolutionMySQL
196Delete Duplicate EmailssolutionMySQLDELETE FROM SELF JOIN Table
197Rising TemperaturesolutionMySQLDATE_SUB or DATEDIFF
511Game Play Analysis I[无]MySQL
570Managers with at Least 5 Direct ReportssolutionMySQL
580Count Student Number in DepartmentssolutionMySQL
584Find Customer RefereesolutionMySQLIFNULL
586Customer Placing the Largest Number of OrderssolutionMySQLORDER BY and LIMIT 1 to get max/min value
595Big CountriessolutionMySQL
607Sales PersonsolutionMySQL
608Tree NodesolutionMySQLIF or CASE
619Biggest Single NumbersolutionMySQL
627Swap SalarysolutionMySQLIF or CASE
1050Actors and Directors Who Cooperated At Least Three Times[无]MySQL
1084Sales Analysis III[无]MySQL
1112Highest Grade For Each Student[无]MySQL
1141User Activity for the Past 30 Days I[无]MySQL
1148Article Views I[无]MySQL
1158Market Analysis I[无]MySQLThe diff between WHERE and AND in LEFT JOIN
1173Immediate Food Delivery I[无]MySQL
1211Queries Quality and Percentage[无]MySQL
1251Average Selling Price[无]MySQL
1264Page Recommendations[无]MySQL
1280Students and Examinations[无]MySQL
1303Find the Team Size[无]MySQL
1350Students With Invalid Departments[无]MySQL
1393Capital Gain/Loss[无]MySQL
1398Customers Who Bought Products A and B but Not C[无]MySQL
1407Top Travellers[无]MySQL
1440Evaluate Boolean Expression[无]MySQLJOIN 3 Tables
1445Apples & Oranges[无]MySQL
1484Group Sold Products By The Date[无]MySQLGROUP_CONCAT
1527Patients With a Condition[无]MySQL
1571Warehouse Manager[无]MySQL
1581Customer Who Visited but Did Not Make Any Transactions[无]MySQL
1587Bank Account Summary II[无]MySQLJOIN (NOT LEFT JOIN)
1607Sellers With No Sales[无]MySQL
1633Percentage of Users Attended a Contest[无]MySQL
1667Fix Names in a Table[无]MySQLUPPER, LOWER, SUBSTRING, CONCAT
1693Daily Leads and Partners[无]MySQL
1699Number of Calls Between Two Persons[无]MySQLGREATEST, LEAST
1729Find Followers Count[无]MySQL
1741Find Total Time Spent by Each Employee[无]MySQL
1757Recyclable and Low Fat Products[无]MySQL
1795Rearrange Products Table[无]MySQL
1873Calculate Special Bonus[无]MySQLSELECT CASE 或者 SELECT IF 的使用
1890The Latest Login in 2020[无]MySQLYEAR
1965Employees With Missing Information[无]MySQL