LeetCode 619: Biggest Single Number
A SQL guide for finding the largest number that appears exactly once in a table.
17 notes
A SQL guide for finding the largest number that appears exactly once in a table.
A SQL guide for pivoting rows into columns using ranking and conditional aggregation.
A SQL guide for comparing each department's monthly average salary against the company's monthly average salary.
A SQL guide for finding users who both follow someone and have followers, then counting how many followers they have.
A SQL guide for counting friendships from both requester and accepter sides, then returning the user with the most friends.
A clear explanation of finding the first device used by each player using SQL aggregation and a join.
A clear explanation of finding each player's first login date using SQL aggregation.
A clear SQL guide for finding classes that have at least five students.
A clear SQL guide for finding the customer who placed the most orders.
A clear SQL guide for summing 2016 investments for policies with repeated 2015 investment values and unique locations.
A clear SQL guide for counting students in every department, including departments with zero students.
A clear SQL guide for finding the question with the highest answer rate from survey logs.
A clear explanation of Winning Candidate using SQL aggregation to count votes and return the candidate with the most votes.
A clear explanation of Managers with at Least 5 Direct Reports using grouping and a self join.
A clear explanation of the Trips and Users SQL problem using joins, filtering, grouping, and conditional aggregation.
A clear SQL solution for finding every employee who earns the highest salary in their department.
A clear SQL solution for reporting email values that appear more than once in the Person table.