Hackerrank SQL Solutions | Contest Leaderboard SQL Hackerrank Medium Problem Subquery Version

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ส.ค. 2020
  • This video is solving the "Contest Leaderboard" Problem on Hackerrank. This is a medium SQL Problem. In this version I am solving the problem with a Subquery. Here is a different solution including a with Statement: • Hackerrank SQL Solutio...
    ____________________________________________
    SUBSCRIBE!
    Do you want to understand how to solve SQL Problems in every detail? That's what my channel is about. When I was younger I thought I could never program because it looked way too difficult. The truth is that it takes time but with some patience anybody can do it! Follow me along and get better!
    ____________________________________________
    SUPPORT MY CHANNEL
    🙌The best way to support my channel right now is to give me a Super Thanks. You can do that by clicking thanks next to the title of the video. It is much appreciated!
    ____________________________________________
    💾GitHub: github.com/CuriosityLeonardo?...
    ✋Add me on LinkedIn to get in contact: / markus-friemann-221b3814b

ความคิดเห็น • 9

  • @giadinhaustintx
    @giadinhaustintx 3 ปีที่แล้ว +1

    very helpful. Thanks.

  • @rahulnegi2059
    @rahulnegi2059 ปีที่แล้ว +1

    Thank you. It was really helpful.

  • @Pr3kashSingh
    @Pr3kashSingh 5 หลายเดือนก่อน +1

    thanks

  • @dharmaputra7394
    @dharmaputra7394 3 ปีที่แล้ว +1

    Thanks 👍

    • @thecodingmentor7701
      @thecodingmentor7701  3 ปีที่แล้ว

      No problem 👍

    • @dharmaputra7394
      @dharmaputra7394 3 ปีที่แล้ว

      @@thecodingmentor7701 request how to solved problem to more about subquery

  • @hanguyenhoang6297
    @hanguyenhoang6297 ปีที่แล้ว

    with a as (select
    Submissions.hacker_id as hi, name, challenge_id, score, max(score) over(partition by Submissions.hacker_id, challenge_id) as mc
    from Submissions join Hackers on Submissions.hacker_id = Hackers.hacker_id)
    select hi,name,sum(score)
    from a
    where mc=score
    group by hi, name
    having sum(score) > 0
    order by sum(score) desc, hi;
    Hi, video is very helpful but i have another solution and result is exactly like butit is a wrong anwser and i dont know what i'am wrong, can you explain for me, thank you very much