Published onSeptember 26, 2019[LeetCode 626] Exchange SeatsMySQLMary is a teacher in a middle school and she has a table seat storing students' names and their corresponding seat ids.
Published onSeptember 21, 2019[LeetCode 176] Second Highest SalaryMySQLWrite a SQL query to get the second highest salary from the Employee table.
Published onSeptember 20, 2019[LeetCode 197] Rising TemperatureMySQLGiven a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates.
Published onSeptember 6, 2019[LeetCode 196] Delete Duplicate EmailsMySQLWrite a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id.
Published onSeptember 5, 2019[LeetCode 181] Employees Earning More Than Their ManagersMySQLThe `Employee` table holds all employees including their managers.
Published onSeptember 4, 2019[LeetCode 627] Swap SalaryMySQLGiven a table salary, such as the one below, that has m=male and f=female values.
Published onSeptember 3, 2019[LeetCode 620] Not Boring MoviesMySQLX city opened a new cinema, many people would like to go to this cinema.