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, h.name from Hackers h
where count(*) from
(
select s.hacker_id from submissions s
join challenges c on c.challenge_id = s.challenge_id
join difficulty d on d.difficulty_level = c.difficulty_level
where d.score = s.score
group by hacker_id, challenge_id
)
0
order by count(challenge) desc
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Top Competitors
You are viewing a single comment's thread. Return to all comments →
why is this wrong:
select h.hacker_id, h.name from Hackers h where count(*) from ( select s.hacker_id from submissions s join challenges c on c.challenge_id = s.challenge_id join difficulty d on d.difficulty_level = c.difficulty_level where d.score = s.score group by hacker_id, challenge_id )