Top Competitors

  • + 0 comments

    select h.hacker_id, h.name from hackers h

    Inner Join Submissions s on h.hacker_id = s.hacker_id Inner Join Challenges c on s.challenge_id = c.challenge_id Inner join Difficulty d on d.difficulty_level = c.difficulty_level

    where s.score = d.score

    group by h.hacker_id, h.name

    having count(s.challenge_id ) > 1

    Order By count(s.challenge_id) desc, hacker_id asc