You are viewing a single comment's thread. Return to all comments →
MS SQL Version:
SELECT h.hacker_id, h.name, SUM(score) FROM ( SELECT hacker_id, challenge_id, MAX(score) AS score FROM SUBMISSIONS GROUP BY hacker_id, challenge_id )t JOIN Hackers h on t.hacker_id = h.hacker_id GROUP BY h.hacker_id, h.name HAVING SUM(score) > 0 ORDER BY SUM(score) desc, h.hacker_id
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 →
MS SQL Version: