Top Competitors

  • + 0 comments

    select h.hacker_id, h.name from hackers h join (select sub.hacker_id hackerId, count(sub.hacker_id) hacker_count from submissions sub join challenges ch on sub.challenge_id=ch.challenge_id join difficulty diff on ch.difficulty_level=diff.difficulty_level where diff.score=sub.score group by(sub.hacker_id)) sl on sl.hackerId=h.hacker_id where hacker_count > 1 order by hacker_count desc, h.hacker_id;