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 CONCAT(Hackers.hacker_id," ",Hackers.name) FROM Hackers
INNER JOIN Submissions ON Hackers.hacker_id = Submissions.hacker_id
INNER JOIN Challenges ON Submissions.challenge_id = Challenges.challenge_id
INNER JOIN Difficulty ON Challenges.difficulty_level = Difficulty.difficulty_level
WHERE Submissions.score = Difficulty.score GROUP BY Hackers.hacker_id , Hackers.name
HAVING COUNT(DISTINCT Submissions.challenge_id) >1 ORDER BY COUNT(DISTINCT Challenges.challenge_id) DESC , Hackers.hacker_id ASC;
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 →
SELECT CONCAT(Hackers.hacker_id," ",Hackers.name) FROM Hackers INNER JOIN Submissions ON Hackers.hacker_id = Submissions.hacker_id INNER JOIN Challenges ON Submissions.challenge_id = Challenges.challenge_id INNER JOIN Difficulty ON Challenges.difficulty_level = Difficulty.difficulty_level WHERE Submissions.score = Difficulty.score GROUP BY Hackers.hacker_id , Hackers.name HAVING COUNT(DISTINCT Submissions.challenge_id) >1 ORDER BY COUNT(DISTINCT Challenges.challenge_id) DESC , Hackers.hacker_id ASC;