first_value and last_value SQL window functions MASTER CLASS | Advance SQL

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ • 63

  • @avi8016
    @avi8016 2 роки тому +2

    Good to know the difference between first and last value.
    Thanks a lot sir🙏

  • @SKAMRANPASHA
    @SKAMRANPASHA 2 роки тому +14

    Make video on different functions, like COALESCE, EXIST, INTERVAL, CONCAT, EPOCH etc

    • @rishav144
      @rishav144 2 роки тому +1

      you are right .....

  • @rockagain5416
    @rockagain5416 11 місяців тому

    Whenever I watch your video I really Learn New Things Thankyou Sir❤❤

  • @sreemalapal
    @sreemalapal Рік тому

    The perfect explanation which I was searching till date over the internet reg the issue with Last Date func !! Thank you 😀😀

  • @pujasil2087
    @pujasil2087 2 роки тому

    I learn something new today. Thanks for this. It is really helpful

  • @inspiredomkar1239
    @inspiredomkar1239 2 роки тому +2

    Sir,It would be great if you take a SQL query where we have to make use of these functions.

  • @amazingriknow5986
    @amazingriknow5986 2 роки тому +3

    Thank for providing script in description Ankit.
    Also kindly try to do atleast 3videos per week . Just a request.
    Thank you

  • @SKAMRANPASHA
    @SKAMRANPASHA 2 роки тому +1

    Bahot achche !

  • @jasleenkaur-cw2fw
    @jasleenkaur-cw2fw 6 місяців тому

    Awesome explanation! Thanks for sharing

  • @andreagreco7574
    @andreagreco7574 2 роки тому

    Useful as always, thanks Ankit. The difference between the two functions is tricky, thanks for bringing that up.

    • @ankitbansal6
      @ankitbansal6  2 роки тому

      Glad it was helpful!

    • @norbertlipinski7598
      @norbertlipinski7598 2 роки тому

      Actually it is not about how the functions work as they work both in exactly same way, the confusion is caused by how the ORDER BY clause within window function changes the data frames which are being taken to the functions to calculate the result for each row.

  • @vishwish123
    @vishwish123 Рік тому

    Thank you so much Ankit Sir your explanation is fantastic.......😊

  • @equiwave80
    @equiwave80 2 роки тому +1

    Thanks for this video. It was super useful!!!

  • @ThePragyashree
    @ThePragyashree 2 роки тому +3

    Today i was studying for an interview.. and i was not understanding this concept.. thank you for this topic 🙏

  • @SantanuRoy-oq2nv
    @SantanuRoy-oq2nv 2 роки тому

    Fantastic Information. Thank you Ankit

  • @Sridharkc_
    @Sridharkc_ 2 роки тому

    Hey Ankit!!
    You are giving me hope in technical aspects video by video

  • @SACHINKUMAR-px8kq
    @SACHINKUMAR-px8kq Рік тому

    Thankyou So much Sir for this Amazing Guidance

  • @anirbansarkar6306
    @anirbansarkar6306 2 роки тому

    Great Tutorial. Thanks Sir

  • @khushishrivastava331
    @khushishrivastava331 Рік тому

    Hello Ankit,
    Thank you for making such insightful videos.
    I want to ask a question here.
    I have come across in a lot of interviews that they ask to solve a question without using a window function. Is there any trick to solving such questions? Can you provide us with an example.

  • @rakeshbabu3839
    @rakeshbabu3839 2 роки тому

    At 7:39 ...why you again added order by emp_age at end of query even though you used order by in OVER clause.
    Even if you didn't add order by at the end the output looks same right

    • @ankitbansal6
      @ankitbansal6  2 роки тому

      That's just to sort the result in output. Even if you don't do it the result will be same

    • @rakeshbabu3839
      @rakeshbabu3839 2 роки тому

      @@ankitbansal6 okay..thanks sir

  • @abhinavkumar-jj2dx
    @abhinavkumar-jj2dx 2 роки тому

    wow....Literally Awesome :)

  • @baali735
    @baali735 Рік тому

    Thank you new thing for me

  • @AdharshSunny
    @AdharshSunny 2 роки тому

    Thanks Brother for the Continues great Work.
    Just asking if you can start any GCP Engineering concepts also like Dataflow, composer

  • @nikhilmogre206
    @nikhilmogre206 2 роки тому

    I liked the explanation part
    Thank u😊

  • @chillavenkatesh6097
    @chillavenkatesh6097 2 роки тому

    Hello Ankit,
    We can also use Join by 'using' keyword.
    For suppose, generally we write join like : a join b on a.id=b.id
    So by using keyword we can write like: a join b using id
    So many of them don't know that 'Using' keyword.
    Can you please make a video on it.
    And yeah i had used that first_value and last_value function

  • @kanchankumar3355
    @kanchankumar3355 2 роки тому

    Good one, nicely explained 👍

  • @vaibhavverma1340
    @vaibhavverma1340 2 роки тому

    Very well Explained :)

  • @munikumarpoosala1264
    @munikumarpoosala1264 4 місяці тому +1

    Nice

    • @munikumarpoosala1264
      @munikumarpoosala1264 4 місяці тому

      Can you provide documents related to Oracle and plsql... I think your documents easy to understand..

  • @clear_vision_
    @clear_vision_ Рік тому

    Yet another great video Ankit. Just a doubt I had in the frame clause : last_value(emp_name) over(order by emp_age rows between current row and unbounded following)
    last_value(emp_name) over(order by emp_age rows between unbounded preceding and unbounded following)
    Both above frame clauses give same results, right?

  • @DataEngineerPratik
    @DataEngineerPratik 9 місяців тому

    Great !!

  • @abhimanyutiwari100
    @abhimanyutiwari100 2 роки тому

    Make a video on EXIST

  • @rakeshbabu3839
    @rakeshbabu3839 2 роки тому

    In the LAST_VALUE function..you used ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING.....does this work on WINDOW FUNCTION we use or both on ORDER BY and WINDOW FUNCTION we have used?

  • @greatromulus3028
    @greatromulus3028 Рік тому

    if we can order by asc or desc why we need last_value function? we can bring last_value just adding desc at the end of the order by.

  • @vineetjain7518
    @vineetjain7518 Рік тому

    Applied in example

  • @Hkumar_new
    @Hkumar_new 7 місяців тому

    Anable to see any thing video

  • @darrylw99
    @darrylw99 23 дні тому

    firstly ensure the code you give us is accurate, you have ELEVEN ppl in your code yet TEN in the code in the comments