We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
MYSQL, huge pain this problem was, from understanding the question itself, to not being able to use CTE or window functions like row_number(), I still managed to do this with just subqueries. I solved the problem in 2 steps and joined these 2 steps in the end. I can give further explaination of my solution if anyone wants or cares.
15 Days of Learning SQL
You are viewing a single comment's thread. Return to all comments →
MYSQL, huge pain this problem was, from understanding the question itself, to not being able to use CTE or window functions like row_number(), I still managed to do this with just subqueries. I solved the problem in 2 steps and joined these 2 steps in the end. I can give further explaination of my solution if anyone wants or cares.