Ranking using RANK, DENSE_RANK and ROW_NUMBER : Problem Solving using Analytic Functions

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 33

  • @tejashshah5202
    @tejashshah5202 2 года назад +4

    I usually do not comment on a video but this is a gem of a video. Precise, accurate and no bs video! I keep coming back to this video whenever I'm rusty with ranking. Thank you!

  • @GM-xz4xc
    @GM-xz4xc 2 года назад +1

    this video is such a gem. too good to be on youtube

  • @andreyaleksandrovich7141
    @andreyaleksandrovich7141 2 года назад +1

    Thank you your great explanation, very simpe and sreight forward.

  • @sujaa1000
    @sujaa1000 2 года назад

    Thank you for the clear explanation and examples.

  • @धीरज-ठ4ह
    @धीरज-ठ4ह 3 года назад +2

    quick, consise and accurate. thanks mate.

  • @xinmingd8992
    @xinmingd8992 2 года назад +1

    Thanks. This video is really informative.

  • @skr221167
    @skr221167 3 года назад +2

    video good quality - explanation clear, simple and easy to understand - very helpful . Thanks a lot

  • @dovieweinstock9424
    @dovieweinstock9424 2 года назад +1

    subbed

  • @hariprasadj
    @hariprasadj 2 года назад +1

    Thanks bro

  • @pallavichaudhari9467
    @pallavichaudhari9467 4 года назад +2

    Very useful and understanding in less time. Thank you

  • @anandpadamala451
    @anandpadamala451 3 года назад

    GREAT VIDEO ..keep going. cheers

  • @abhisheksalvi2438
    @abhisheksalvi2438 3 года назад +2

    Thank you for such a great and precise explanation :)

  • @GM-xz4xc
    @GM-xz4xc 2 года назад

    Please keep doing more of this...maybe some interview type questions etc...just suggesting, You rock Tim !! :)

  • @In_Islam.
    @In_Islam. 4 года назад +1

    More and good explanation Thank you.

  • @nimmathota
    @nimmathota 3 года назад

    Really useful totally agree with Pallavi, and i have book marked this video

  • @JonathanDPoole
    @JonathanDPoole 3 года назад +1

    That was helpful. Thank you!

  • @meghasyam427
    @meghasyam427 3 года назад

    This is so short and sweet. Thanks bro

  • @himanshunanda8743
    @himanshunanda8743 4 года назад

    PRECISE AND THE BEST EXPLAINATION

  • @ayaharfali849
    @ayaharfali849 2 года назад +1

    you are awesome

  • @samruddhipatil2551
    @samruddhipatil2551 3 года назад

    Great

  • @sauravsingh7216
    @sauravsingh7216 5 лет назад +3

    SIMPLE AND STRAIGHT FORWARD

  • @sumanthanumula8048
    @sumanthanumula8048 3 года назад

    U sir, are a Hero..!

  • @Naru_NNN
    @Naru_NNN 4 года назад +1

    excellent

  • @christysaji9713
    @christysaji9713 2 года назад

    Thank your for precise explanation.. As you have mentioned, if I need to fetch the earliest record from a table which should order by a timestamp, then the logic will be similar to that of the one you have explained about fetching records for lowest salary ?

    • @oracle-base
      @oracle-base  2 года назад +1

      Yes. You will order by the timestamp column in the analytic clause.

  • @alaaeddine6340
    @alaaeddine6340 4 года назад +1

    awesome

  • @pankajkharade6936
    @pankajkharade6936 3 года назад

    👍👍

  • @poojabhatia2501
    @poojabhatia2501 4 года назад

    Good explanation

  • @shilpananda6335
    @shilpananda6335 3 года назад

    Awesome sir

    • @shilpananda6335
      @shilpananda6335 3 года назад

      I have a doubt ...you explained that to remove ties we will use row_number() and you kept hiredate in order by along with sal.. So can't we use the same in dense_rank() also..like order by dal, hiredate?????

  • @shilpananda6335
    @shilpananda6335 3 года назад

    I have a doubt ...you explained that to remove ties we will use row_number() and you kept hiredate in order by along with sal.. So can't we use the same in dense_rank() also..like order by dal, hiredate?????

    • @oracle-base
      @oracle-base  3 года назад +1

      Yes, you could do that with this data and it would give the same result, BUT that is just for this data set. What if two people joined on the same day with the same salary? They would have a tie and RANK/DENSE_RANK would still show ties. ROW_NUMBER is guaranteed not to show ties.
      The point of adding HIREDATE was to show that you might want to consider alternative criteria to try and get some consistency in the output. Without this you would not be certain which of the tied rows you were getting each time you ran the query. It wasn't meant to indicate that ROW_NUMBER was somehow fundamentally different in the way the ORDER BY can be used.

  • @steliosgiannelos1297
    @steliosgiannelos1297 3 года назад

    LEGEND