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.
this doesnt work for me. the code is:
select
a.hacker_id, a.name
from
(select name, s.hacker_id
from submissions s
join challenges c
on s.challenge_id = c.challenge_id
inner join
difficulty d
on c.difficulty_level = d.difficulty_level
inner join hackers h
on s.hacker_id = h.hacker_id
where s.score = d.score and c.difficulty_level = d.difficulty_level
) a
group by a.hacker_id, a.name
having count(a.hacker_id) >1
order by count(a.hacker_id) desc , a.hacker_id
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 →
this doesnt work for me. the code is: select a.hacker_id, a.name from (select name, s.hacker_id from submissions s join challenges c on s.challenge_id = c.challenge_id inner join difficulty d on c.difficulty_level = d.difficulty_level inner join hackers h on s.hacker_id = h.hacker_id
) a group by a.hacker_id, a.name