Contest Leaderboard

  • + 0 comments

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