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.
no diff between yours and mine but mine is not passing the test cases. please review
select a.hacker_id, a.name
from hackers a,
difficulty b,
challenges c,
submissions d
where c.challenge_id = d.challenge_id
and a.hacker_id = d.hacker_id
and b.difficulty_level = c.difficulty_level
and b.score = d.score
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 →
no diff between yours and mine but mine is not passing the test cases. please review
select a.hacker_id, a.name from hackers a, difficulty b, challenges c, submissions d where c.challenge_id = d.challenge_id and a.hacker_id = d.hacker_id and b.difficulty_level = c.difficulty_level and b.score = d.score group by a.hacker_id,a.name having count(a.hacker_id) >1 order by count(a.hacker_id) desc, a.hacker_id;