Top Competitors

  • + 1 comment

    What is error in this? please help

    select A.hacker_id, name from (select hacker_id, count(challenge_id) as num from (select A.challenge_id, A.hacker_id, submission_id, difficulty_level, target, B.score as obtained from (select challenge_id, hacker_id, A.difficulty_level, score as target from Challenges as A inner join Difficulty as B on A.difficulty_level = B.difficulty_level) as A inner join Submissions as B on A.challenge_id = B.challenge_id where B.score = target) as A group by hacker_id having count( challenge_id)>1) as A inner join Hackers as B on A.hacker_id = B.hacker_id order by num desc, A.hacker_id asc