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 as h, difficulty as d, challenges as c, submissions as s
WHERE h.hacker_id = s.hacker_id AND d.difficulty_level = c.difficulty_level AND c.challenge_id = s.challenge_id AND c.challenge_id = s.challenge_id AND d.score = s.score
GROUP BY h.hacker_id, h.name
HAVING COUNT(s.submission_id) > 1
ORDER BY COUNT(s.submission_id) DESC, h.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 h.hacker_id , h.name FROM hackers as h, difficulty as d, challenges as c, submissions as s WHERE h.hacker_id = s.hacker_id AND d.difficulty_level = c.difficulty_level AND c.challenge_id = s.challenge_id AND c.challenge_id = s.challenge_id AND d.score = s.score GROUP BY h.hacker_id, h.name HAVING COUNT(s.submission_id) > 1 ORDER BY COUNT(s.submission_id) DESC, h.hacker_id ASC;