You are viewing a single comment's thread. Return to all comments →
Mysql
select h.hacker_id, h.name, sum(scr) as fs from hackers as h join (select s.hacker_id, s.challenge_id, max(s.score) as scr from submissions as s group by s.hacker_id, s.challenge_id having scr > 0) as t1 on h.hacker_id = t1.hacker_id group by h.hacker_id order by fs desc, h.hacker_id;
Seems like cookies are disabled on this browser, please enable them to open this website
Contest Leaderboard
You are viewing a single comment's thread. Return to all comments →
Mysql