Top Competitors

  • + 0 comments

    select h.hacker_id, h.name from Hackers h join challenges c on h.hacker_id = c.hacker_id join difficulty d on c.difficulty_level = d.difficulty_level join submissions s on d.score = s.score where s.score = d.score group by h.hacker_id, h.name having count(distinct s.challenge_id) > 1 order by count(distinct s.challenge_id) desc, h.hacker_id asc

    (what's wrong with this?)