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(hacker_id," ", name)
FROM (
SELECT s.hacker_id, h.name, COUNT(*) AS count_full_Scores
FROM Submissions as s
INNER JOIN Challenges as c
ON s.challenge_id = c.challenge_id
INNER JOIN Difficulty as d
ON c.difficulty_level = d.difficulty_level
INNER JOIN Hackers as h
ON s.hacker_id = h.hacker_id
WHERE s.score = d.score
GROUP BY s.hacker_id, h.name) AS new_table
WHERE count_full_Scores > 1
ORDER BY count_full_Scores DESC, 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(hacker_id," ", name) FROM ( SELECT s.hacker_id, h.name, COUNT(*) AS count_full_Scores
FROM Submissions as s INNER JOIN Challenges as c ON s.challenge_id = c.challenge_id INNER JOIN Difficulty as d ON c.difficulty_level = d.difficulty_level INNER JOIN Hackers as h ON s.hacker_id = h.hacker_id
WHERE s.score = d.score
GROUP BY s.hacker_id, h.name) AS new_table WHERE count_full_Scores > 1 ORDER BY count_full_Scores DESC, hacker_id ASC