You are viewing a single comment's thread. Return to all comments →
SELECT finalchallengescore.hacker_id AS hacker_id, name, total_score FROM ( SELECT hacker_id, challenge_id, max(score) AS finalscore, sum(max(score)) OVER (PARTITION BY hacker_id) AS total_score FROM Submissions GROUP BY hacker_id, challenge_id ) finalchallengescore JOIN Hackers ON finalchallengescore.hacker_id = Hackers.hacker_id AND total_score >= 1 GROUP BY finalchallengescore.hacker_id, name, total_score ORDER BY total_score DESC, hacker_id;
Oracle with Window function
Seems like cookies are disabled on this browser, please enable them to open this website
Contest Leaderboard
You are viewing a single comment's thread. Return to all comments →
Oracle with Window function