first_value and last_value SQL window functions MASTER CLASS | Advance SQL

  Рет қаралды 19,595

Ankit Bansal

Ankit Bansal

Күн бұрын

Пікірлер: 63
@rockagain5416
@rockagain5416 11 ай бұрын
Whenever I watch your video I really Learn New Things Thankyou Sir❤❤
@avi8016
@avi8016 2 жыл бұрын
Good to know the difference between first and last value. Thanks a lot sir🙏
@ankitbansal6
@ankitbansal6 2 жыл бұрын
Keep watching
@sreemalapal
@sreemalapal Жыл бұрын
The perfect explanation which I was searching till date over the internet reg the issue with Last Date func !! Thank you 😀😀
@ankitbansal6
@ankitbansal6 Жыл бұрын
Great to hear!
@SKAMRANPASHA
@SKAMRANPASHA 2 жыл бұрын
Make video on different functions, like COALESCE, EXIST, INTERVAL, CONCAT, EPOCH etc
@rishav144
@rishav144 2 жыл бұрын
you are right .....
@SKAMRANPASHA
@SKAMRANPASHA 2 жыл бұрын
Bahot achche !
@vishwish123
@vishwish123 Жыл бұрын
Thank you so much Ankit Sir your explanation is fantastic.......😊
@ankitbansal6
@ankitbansal6 Жыл бұрын
Most welcome 😊
@pujasil2087
@pujasil2087 Жыл бұрын
I learn something new today. Thanks for this. It is really helpful
@ankitbansal6
@ankitbansal6 Жыл бұрын
Glad it was helpful!
@jasleenkaur-cw2fw
@jasleenkaur-cw2fw 6 ай бұрын
Awesome explanation! Thanks for sharing
@inspiredomkar1239
@inspiredomkar1239 2 жыл бұрын
Sir,It would be great if you take a SQL query where we have to make use of these functions.
@ankitbansal6
@ankitbansal6 2 жыл бұрын
Next video
@amazingriknow5986
@amazingriknow5986 2 жыл бұрын
Thank for providing script in description Ankit. Also kindly try to do atleast 3videos per week . Just a request. Thank you
@ankitbansal6
@ankitbansal6 2 жыл бұрын
I will try my best
@amazingriknow5986
@amazingriknow5986 2 жыл бұрын
@@ankitbansal6 thank you
@equiwave80
@equiwave80 2 жыл бұрын
Thanks for this video. It was super useful!!!
@ankitbansal6
@ankitbansal6 2 жыл бұрын
Glad it was helpful!
@ThePragyashree
@ThePragyashree 2 жыл бұрын
Today i was studying for an interview.. and i was not understanding this concept.. thank you for this topic 🙏
@ankitbansal6
@ankitbansal6 2 жыл бұрын
All the best
@SantanuRoy-oq2nv
@SantanuRoy-oq2nv 2 жыл бұрын
Fantastic Information. Thank you Ankit
@ankitbansal6
@ankitbansal6 2 жыл бұрын
Thanks and welcome
@SACHINKUMAR-px8kq
@SACHINKUMAR-px8kq Жыл бұрын
Thankyou So much Sir for this Amazing Guidance
@ankitbansal6
@ankitbansal6 Жыл бұрын
Most welcome
@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.
@anirbansarkar6306
@anirbansarkar6306 2 жыл бұрын
Great Tutorial. Thanks Sir
@ankitbansal6
@ankitbansal6 2 жыл бұрын
You are most welcome
@abhinavkumar-jj2dx
@abhinavkumar-jj2dx 2 жыл бұрын
wow....Literally Awesome :)
@ankitbansal6
@ankitbansal6 2 жыл бұрын
Thank you! Cheers!
@Sridharkc_
@Sridharkc_ 2 жыл бұрын
Hey Ankit!! You are giving me hope in technical aspects video by video
@ankitbansal6
@ankitbansal6 2 жыл бұрын
All the best
@munikumarpoosala1264
@munikumarpoosala1264 3 ай бұрын
Nice
@munikumarpoosala1264
@munikumarpoosala1264 3 ай бұрын
Can you provide documents related to Oracle and plsql... I think your documents easy to understand..
@nikhilmogre206
@nikhilmogre206 Жыл бұрын
I liked the explanation part Thank u😊
@ankitbansal6
@ankitbansal6 Жыл бұрын
You're welcome 😊
@baali735
@baali735 11 ай бұрын
Thank you new thing for me
@DataEngineerPratik
@DataEngineerPratik 8 ай бұрын
Great !!
@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 👍
@ankitbansal6
@ankitbansal6 2 жыл бұрын
Glad you liked it
@vaibhavverma1340
@vaibhavverma1340 2 жыл бұрын
Very well Explained :)
@ankitbansal6
@ankitbansal6 2 жыл бұрын
Thank you 🙂
@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.
@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?
@ankitbansal6
@ankitbansal6 Жыл бұрын
Yes
@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
@AdharshSunny
@AdharshSunny Жыл бұрын
Thanks Brother for the Continues great Work. Just asking if you can start any GCP Engineering concepts also like Dataflow, composer
@vineetjain7518
@vineetjain7518 Жыл бұрын
Applied in example
@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?
@ankitbansal6
@ankitbansal6 2 жыл бұрын
Yes all aggregation functions it works
@rakeshbabu3839
@rakeshbabu3839 2 жыл бұрын
@@ankitbansal6 Thanks 🙏🏻
@abhimanyutiwari100
@abhimanyutiwari100 2 жыл бұрын
Make a video on EXIST
@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.
@ankitbansal6
@ankitbansal6 Жыл бұрын
Exactly. We don't need it. 😊
@Hkumar_new
@Hkumar_new 7 ай бұрын
Anable to see any thing video
@darrylw99
@darrylw99 4 күн бұрын
firstly ensure the code you give us is accurate, you have ELEVEN ppl in your code yet TEN in the code in the comments
All About SQL Aggregations | SQL Advance | Zero to Hero
17:43
Ankit Bansal
Рет қаралды 61 М.
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
Full Outer Join in Depth Tutorial | Advanced SQL Tutorial
29:02
Ankit Bansal
Рет қаралды 9 М.
Window Functions in MySQL | Intermediate MySQL
13:29
Alex The Analyst
Рет қаралды 101 М.
SQL for Data Analysis in 2 hours (with dataset + 50 queries)
1:56:40
Ankit Bansal
Рет қаралды 52 М.
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН