Hackerrank SQL Solutions | SQL Project Planning Hackerrank Medium Problem

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.พ. 2021
  • Find the code to this problem: github.com/MarkusFriemann/Hac...
    You find this problem at:
    www.hackerrank.com/challenges...
    ____________________________________________
    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

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

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

    The whole series of SQL Hackerrank is so helpful. Very systematic, step-by-step outputs and explanation. Just amazing! Thank you Markus.

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

    very unique way of teaching. You started from the scratch, divided the problem into bits and the solved it bits by bits. exactly how a students wants it. VERY HELPFUL, THANK YOU.

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

    I think you should make more tutorial videos on SQL and other topics because your way of explaining is very clear and easily understandable. Thank you

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

    Superb way of explaining .... Much appreciated!

  • @paragrehani6901
    @paragrehani6901 2 ปีที่แล้ว

    Thank you so much for the wonderful explanation.

  • @faisal7828247910
    @faisal7828247910 2 ปีที่แล้ว +2

    Markus, we need more such videos from you. Can you please make these for all other medium level hacker rank questions? Would be so so helpful !!

    • @thecodingmentor7701
      @thecodingmentor7701  2 ปีที่แล้ว +4

      Just for you Faisal, I did a new video with ALL other medium problems and ALL hard and easy SQL Problems: th-cam.com/video/vpzO8QTrgbc/w-d-xo.html Enjoy!

  • @vineetkaur1667
    @vineetkaur1667 2 หลายเดือนก่อน

    Thank you for the video !

  • @varshahindupur4624
    @varshahindupur4624 7 หลายเดือนก่อน +1

    Great Explanation: MySQL answer is : WITH Project_Start_Date AS (
    SELECT Start_Date, RANK() OVER (ORDER BY Start_Date) AS Rank_Start
    FROM Projects
    WHERE Start_Date NOT IN (SELECT End_Date FROM Projects)
    ),
    Project_End_Date AS (
    SELECT End_Date, RANK() OVER (ORDER BY End_Date) AS Rank_End
    FROM Projects
    WHERE End_Date NOT IN (SELECT Start_Date FROM Projects)
    )
    SELECT Start_Date, End_Date
    FROM Project_Start_Date, Project_End_Date
    where Rank_Start = Rank_End
    ORDER BY DATEDIFF(End_Date, Start_Date), Start_Date

  • @luyiting7245
    @luyiting7245 4 หลายเดือนก่อน

    thank you for the great explanation, I learnt a lot!

    • @thecodingmentor7701
      @thecodingmentor7701  2 หลายเดือนก่อน

      That's awesome! Im glad you could take something away from it. Keep learning!

  • @saipavanbanala
    @saipavanbanala 2 หลายเดือนก่อน

    very well explained

  • @bhooshan25
    @bhooshan25 11 หลายเดือนก่อน

    great explaination

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

    thank you for this!

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

      You are welcome! Please Like and Subscribe for more SQL Videos :)

  • @siddharthkishan9552
    @siddharthkishan9552 5 หลายเดือนก่อน

    Absolutely amazing way of explaining the question and finding logic. Thanks, Markus
    would it be possible for you to make some solution videos in MySQL also? It will be very helpful :)

    • @thecodingmentor7701
      @thecodingmentor7701  2 หลายเดือนก่อน

      Great Idea thanks! I will definitely consider it for future videos :)

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

    Amazing Question and more amazing solution explanation : )

  • @jd_0p
    @jd_0p 3 หลายเดือนก่อน

    You Deserve A Sub bro ❤

  • @TJ-wo1xt
    @TJ-wo1xt 2 ปีที่แล้ว +1

    great explanation sir, but dont u think even dense_rank would work or also row_number??

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

      Hi TJ! Yes, indeed dense_rank and row_number also work in this Problem, nice add!

  • @DataAnalyst251
    @DataAnalyst251 9 หลายเดือนก่อน

    I don't understand how this logic worked, because for task IDs 10, 15, and 11, the start dates are in the list of end date column.

  • @anirudhm7058
    @anirudhm7058 2 ปีที่แล้ว

    waow great explaination sir

  • @binodkepapa4746
    @binodkepapa4746 3 ปีที่แล้ว +2

    Sound issue sir. But overall explanation is awesome 🙂.

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

      Thanks Binod. Newer videos are with an external microphone and better sound quality. Check for example this Video about the "Challenges" Problem on Hackerrank: th-cam.com/video/00yN5ERtxbI/w-d-xo.html

  • @vikasmallick8041
    @vikasmallick8041 2 ปีที่แล้ว

    nailed it..

  • @abhishektg6321
    @abhishektg6321 2 ปีที่แล้ว

    thank you sir

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

    super awesome

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

    HI
    What are the cities that are represented by either customers or employees more than two times?
    Result set:
    CITY TIMES
    ... ....
    .. ...
    .. ...
    I need this types of solution
    where can i find which videos helfull for me ..
    CAn you help me

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

      Hi Cavid
      Maybe something like:
      Select
      City,
      Count(City) as Times
      From table
      Group By City
      Can you post your tables and columns?

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

    Audio quality is not as per the video !! please make sure your audio is clearly audible!
    And great effort but sir !❤️

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

      Thanks for the Feedback Manoj. Audio Quality will get much better in Future videos!

  • @varunkumar9806
    @varunkumar9806 2 ปีที่แล้ว

    Unable to understand your voice due to echo sound

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

      Hi Varun, sorry for that, that was before I got a microphone. Try out this video with ALL Hackerrank solutions, most of them with good sound quality: th-cam.com/video/vpzO8QTrgbc/w-d-xo.html&ab_channel=TheCodingMentor 🤗

  • @md.ahsanhabibsowmik4816
    @md.ahsanhabibsowmik4816 ปีที่แล้ว

    very poor sound quality. Explanation was good

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

      Thanks for your Feedback. Glad you like the explanation :) Sound quality improves with newer videos!

  • @varunkumar9806
    @varunkumar9806 2 ปีที่แล้ว

    Sounds echo in your voice..its irritating

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

      Hi Varun, sorry for that, that was before I got a microphone. Try out this video with ALL Hackerrank solutions, most of them with good sound quality: th-cam.com/video/vpzO8QTrgbc/w-d-xo.html&ab_channel=TheCodingMentor

    • @varunkumar9806
      @varunkumar9806 2 ปีที่แล้ว

      @@thecodingmentor7701 ya I watch your most of video..all are good having very nicely explained.. Thankyou