Contest Leaderboard

  • + 0 comments

    select hacker_id, name, sum(score) as mx from ( select h.hacker_id, h.name, s.challenge_id, max(s.score) as score from hackers h join submissions s on h.hacker_id = s.hacker_id group by h.hacker_id, h.name, s.challenge_id ) a group by hacker_id, name having mx > 0 order by mx desc, hacker_id