You are viewing a single comment's thread. Return to all comments →
SELECT
S.hacker_id, H.name
FROM
Submissions S
JOIN
Challenges C ON S.challenge_id = C.challenge_id
Difficulty D ON C.difficulty_level = D.difficulty_level
Hackers H ON S.hacker_id = H.hacker_id
WHERE
S.score = D.score
GROUP BY
HAVING
COUNT(S.challenge_id) > 1
ORDER BY
COUNT(S.challenge_id) DESC,
20 S.hacker_id ASC;
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
FROM
JOIN
JOIN
JOIN
WHERE
GROUP BY
HAVING
ORDER BY
20 S.hacker_id ASC;