We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
select h.hacker_id, name, sum(score)
from
hackers as h inner join
(select hacker_id, max(score) as score from submissions group by challenge_id, hacker_id) max_score on h.hacker_id=max_score.hacker_id
group by h.hacker_id, name
having sum(score) > 1
order by sum(score) desc, h.hacker_id;
hy dear without alias name possible ? Actually it is run successfully in ms
Cookie support is required to access HackerRank
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 →
select h.hacker_id, name, sum(score) from hackers as h inner join (select hacker_id, max(score) as score from submissions group by challenge_id, hacker_id) max_score on h.hacker_id=max_score.hacker_id group by h.hacker_id, name having sum(score) > 1 order by sum(score) desc, h.hacker_id;
hy dear without alias name possible ? Actually it is run successfully in ms