Window functions in SQL Server

  Рет қаралды 222,118

kudvenkat

kudvenkat

Күн бұрын

Пікірлер: 118
@salonikalsulkar363
@salonikalsulkar363 Жыл бұрын
It's been 7 years and still, this tutorial series is far better than every other material on SQL :) Hands Down, Thanks a lot!
@mostafatarek5088
@mostafatarek5088 6 жыл бұрын
give this guy a medal
@RohitKumar-qo7pt
@RohitKumar-qo7pt 3 жыл бұрын
why ?
@IamDanish99
@IamDanish99 2 жыл бұрын
@@RohitKumar-qo7pt Because of the clarity in his presentation, the lucid way of explaining such concepts. He deserves to get a medal.
@shazibnomair7010
@shazibnomair7010 2 жыл бұрын
Seriously.
@krzysztofs8535
@krzysztofs8535 7 жыл бұрын
Best tutorial available on the net . Thank you for your hard job . You are the best teacher on the planet. The way of teaching is just superb! Greetings from Poland !
@7aydarah
@7aydarah 2 жыл бұрын
After 20 years as software developer, it's the fist time that I pay attention to the adventage of window function, I'v been using the subqueries to get this kind of results, but with a very low performance in execution time.
@maheshmenta6078
@maheshmenta6078 12 күн бұрын
there are some dedicated and talented teachers I think he is one of them. Tq Venkat garu
@AW-ld7uk
@AW-ld7uk 7 жыл бұрын
You're a natural born teacher. You're doing what you were born to do. Keep up the good work!
@AhmadAbdallah0395
@AhmadAbdallah0395 4 жыл бұрын
I don't know what to say to you. Thank you very much. You saved me a lot of time and I'm in the middle of exams, usually I would've spent a lot of time searching for an even 50% good tutorial, but your videos are 100% good and precise. Keep up the great work. I hope you do more topics.
@alekzhdo
@alekzhdo 7 жыл бұрын
This is gold! I have been struggling to understand Window functions and syntax and your explanation makes it all clear now.
@MrBhardwaj03
@MrBhardwaj03 Жыл бұрын
This video is exceptional, searched whole of the youtube and internet but no one explained so easily and clearly
@BRelding92
@BRelding92 9 жыл бұрын
Can't believe this doesn't have more views!
@TheBaBaLand
@TheBaBaLand 8 ай бұрын
Great video! Thanks a lot! One thing I would add is that instead of writing BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING statement, we could remove the ORDER BY entirely and just write: AVG(SALARY) OVER() as Average
@b2theb
@b2theb 7 жыл бұрын
Total hero.....I have 70-461 coming up and you've helped me no end!!!!!
@hscsoft_tutorials
@hscsoft_tutorials 11 ай бұрын
You are awssssssom, spent entire day yesterday. think will view kudvenkat tomorrow sunday. found solution withing 5 minute. GREAT
@danieladetayo3711
@danieladetayo3711 Жыл бұрын
This is the best tutorial on windows functions on youtube. Thank you so much for this.
@rohity294
@rohity294 5 жыл бұрын
Freely available at this quality is incredible...god bless!
@pardhasaradhik9234
@pardhasaradhik9234 4 жыл бұрын
thanks for all the parts in sql, i have no hope of learning before seeing your videos ,slowly learnt total course because of u , god may bless you with happy family
@harpreetkaur-yr7gn
@harpreetkaur-yr7gn 7 жыл бұрын
I was struggling to understand windows functions and you have explained it with so ease .Its just awesome.Please keep posting such videos.Thanks a lot :)
@akashdahiya9000
@akashdahiya9000 2 жыл бұрын
The best video on Window functions so far! highly recommend!!
@shahdanyal7542
@shahdanyal7542 4 жыл бұрын
Words cannot translate the emotions . Only can say excellent presentation in clearing the concepts. Thank you from core of heart.
@just3963
@just3963 4 жыл бұрын
What an amazing teacher! Thank you so much for breaking down these concepts for us! :)
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 4 жыл бұрын
Hello Justin - Thank you very much for the feedback. Means a lot. I have included all the sql tutorial videos, slides and text articles in sequence on the following page. Hope you will find it handy. www.pragimtech.com/courses/sql-server-tutorial-for-beginners/ When you have some time, can you please leave your rating and valuable feedback on the REVIEWS tab. It really helps us. Thank you. Good luck and all the very best with everything you are doing.
@margimehta9609
@margimehta9609 3 жыл бұрын
One of the best explanation of the concept of Windows function! I have referenced to lots of tutorials online, but this one really stands out to me :) Kudos gentleman!
@shashireddy231
@shashireddy231 4 жыл бұрын
Venkat are too good. Unbelievably clear and simple.
@frenkyb123
@frenkyb123 6 жыл бұрын
if you use just this: AVG(Salary) OVER() - then whole set is used for computing average. But as soon you put order by into OVER, default value for ROWS and RANGE are taken into calculation. I would expect that just using ORDER BY should not affect calculation of AVG, but it does - it completely changes result set on which calculation is made.
@saurabhdsawant
@saurabhdsawant 5 жыл бұрын
would test , thanks for letting us know
@mermaidviv4517
@mermaidviv4517 3 жыл бұрын
Yes, AVG(Salary) OVER () seems to have the same result
@meghasyam427
@meghasyam427 3 жыл бұрын
Nice tip
@justinli19901027
@justinli19901027 8 жыл бұрын
this guy is so good at teaching.
@cblucohigen8281
@cblucohigen8281 5 жыл бұрын
Wow this is my first comment I’ve ever left on KZbin, you are an amazing teacher I wish I could be mentored by you. From South Africa
@venkatashasidharreddychali7485
@venkatashasidharreddychali7485 Жыл бұрын
Hello Venkat gaaru, great work . Just to add on for the default value of ROWS or RANGE values in OVER() Clause, which varies based on ORDER BY clause --The default value of ROWS or RANGE clause is "RANGE BETWEEN UNBOUNDED PRECEEDING AND CURRENT ROW" If the ORDER BY clause is specified --The default value of ROWS or RANGE clause is "ROWS BETWEEN UNBOUNDED PRECEEDING AND UNBOUNDED FOLLOWING" If the ORDER BY clause is not specified i.e the entire window. Please correct me, if anything is wrong. Kudos to your work and Thank you🙏.
@HygienicMaggot
@HygienicMaggot 8 жыл бұрын
I'm reading Itzik Ben-Gan Fundamentals and joes2pro books but your videos really do give the best clarification on SQL topics. Subscribed and be checking the rest of your channel
@desisto007
@desisto007 2 жыл бұрын
Your tutorials never disappoint! Thanks for sharing your knowledge!
@RageBaiter2000
@RageBaiter2000 7 жыл бұрын
You are a gem! Explained and demonstrated so well. Thank you very much good Sir!!
@Tarikffm79
@Tarikffm79 9 жыл бұрын
Best Tutorial in KZbin! I Love your detailed Videos! I hope you will start with Analysis (SSAS) one day! Thank you Venkat!
@Fawad06
@Fawad06 2 жыл бұрын
this person is teaching better than paid courses...
4 жыл бұрын
This is a really comprehensive tutorial! Thank you so much!
@samuelatobatele5894
@samuelatobatele5894 3 жыл бұрын
The best of the very best! Thank you very much. Greetings from Nigeria
@preyaaatri2943
@preyaaatri2943 4 жыл бұрын
Best video for understanding window functions.
@ladhkay
@ladhkay 4 жыл бұрын
Hats off bro...easy to follow and well explained!
@antoniosol9863
@antoniosol9863 9 жыл бұрын
El Maestro returns
@sami3592
@sami3592 3 жыл бұрын
very very good and clear teaching.
@ibrahims6163
@ibrahims6163 5 жыл бұрын
EXELENT !!!!! it is the best for 10 minutes !!! Perfect
@jayashreejay2989
@jayashreejay2989 3 жыл бұрын
Worth watching
@shubhamsaxena9789
@shubhamsaxena9789 7 жыл бұрын
WOW.....you are too good in explaining the things..cheers...
@hotechmanager
@hotechmanager 4 жыл бұрын
You are like a GOD for me....
@NoobLahe
@NoobLahe 6 жыл бұрын
video was straight forward and detailed, thank you for sharing your knowledge
@TheThodi
@TheThodi 8 жыл бұрын
keep it up! extremely well made tutorial! :)
@meghasyam427
@meghasyam427 3 жыл бұрын
Good attention to detail Thanks a lot
@imransaieen
@imransaieen 8 жыл бұрын
Simplicity of your explanation is remarkable. Keep it up.
@divyas5635
@divyas5635 3 жыл бұрын
Great sir This video helps me lot thank u so much 🙏🙏
@93gbz
@93gbz 5 жыл бұрын
OMG Thanks for this absolutely amazing video
@shivaprasadmpshivu1882
@shivaprasadmpshivu1882 2 жыл бұрын
really a very detailed explanation.
@DB-sf1hy
@DB-sf1hy 4 жыл бұрын
Great explanation
@TheHimaBindu
@TheHimaBindu 9 жыл бұрын
Very informative
@malvikachandhok8571
@malvikachandhok8571 3 жыл бұрын
Thank you so much! Best tutorial!
@kakakukukakakuku
@kakakukukakakuku 8 жыл бұрын
Very helpful video, clearly and nicely explained . Thanks !
@urspramila
@urspramila 8 жыл бұрын
very well explained with simplicity. Great Work.
@likithabh3944
@likithabh3944 3 жыл бұрын
you explained it so well, thankyooou
@mariyademirova5571
@mariyademirova5571 8 жыл бұрын
Great video! Thank you, it is much clearer now!
@anmolpreetkaur711
@anmolpreetkaur711 3 жыл бұрын
What an explanation! Thank you!
@balrajvirdee1087
@balrajvirdee1087 Жыл бұрын
Great explanation 👍🏽
@pascalhauschildt856
@pascalhauschildt856 3 жыл бұрын
GREAT JOB!!!
@HorrorTube1313
@HorrorTube1313 4 жыл бұрын
Can't thank you enough for these videos ! :)
@Passrord
@Passrord 5 жыл бұрын
you made it so clear and precise...thank you
@vaishalib4938
@vaishalib4938 5 жыл бұрын
very neat and to the point explanation !
@deepikakbify
@deepikakbify 8 жыл бұрын
Thanks a lot for the videos. They are very well explained.
@santhoshgayakvad1013
@santhoshgayakvad1013 6 жыл бұрын
To the point, very nice explanations . Thank you :)
@sundeepyadav6234
@sundeepyadav6234 9 жыл бұрын
Very detailed video.... Thank you :)
@parvathirajan.n
@parvathirajan.n 3 жыл бұрын
Amazing ! No words !!!
@prvnkumar7
@prvnkumar7 2 жыл бұрын
Thank you Venkat Sir.
@onyu5813
@onyu5813 2 жыл бұрын
Thanks! very helpful content
@khaledrabah3001
@khaledrabah3001 4 жыл бұрын
5 star teacher
@operationbroomstick
@operationbroomstick 2 жыл бұрын
Wow. Thanks brother ❤
@Sonny0276
@Sonny0276 7 жыл бұрын
Great Video. Thank you for posting.
@jamesabsalemlintu9517
@jamesabsalemlintu9517 6 жыл бұрын
Thank you so much and appreciate your work.
@TheDhanoopjose
@TheDhanoopjose 8 жыл бұрын
Thanks for the video. It was really helpful
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 8 жыл бұрын
+Dhanup Thank you for the feedback. This means a lot. Very pleased you found these videos useful. Dot Net & SQL Server training videos to help you become a web developer kzbin.infoplaylists?view=1&sort=dd Download videos for offline viewing www.pragimtech.com/Order.aspx Slides, Code Samples & Text Version of the videos can be found on my blog csharp-video-tutorials.blogspot.com Tips to effectively use our youtube channel kzbin.info/www/bejne/r2ibYYCtnb5qZtU To receive alerts, when new videos are uploaded, please subscribe to our channel kzbin.info If you like these videos, please click on the THUMBS UP button below the video May I request you to please share the link with your friends who you think would also benefit from them To teach is to learn Thanks Venkat
@doreenshen3690
@doreenshen3690 3 жыл бұрын
This is super helpful. Thanks!
@balrajvirdee1087
@balrajvirdee1087 Жыл бұрын
Thanks great video 👍🏽
@anekarvishal8477
@anekarvishal8477 6 жыл бұрын
Very good explanation
@smtzac002
@smtzac002 8 жыл бұрын
Thank you. That was extremely clear
@NightKingMarhoom
@NightKingMarhoom 4 жыл бұрын
Sir u r great
@harveybains146
@harveybains146 6 жыл бұрын
Great video, Many thanks
@ivywang3276
@ivywang3276 3 жыл бұрын
super helpful
@5tarda
@5tarda 8 жыл бұрын
Thanks man, apreciate your work you've done here :) helpfull, keep doing good work :)
@mohammadal-aqrabawi7145
@mohammadal-aqrabawi7145 8 жыл бұрын
Excellent!!!
@haziqhumayun5878
@haziqhumayun5878 6 жыл бұрын
Too good, thank you so much
@80amnesia
@80amnesia 3 жыл бұрын
Thank you Venkat
@soniasadeque4248
@soniasadeque4248 7 жыл бұрын
great..
@aayushisaxena5738
@aayushisaxena5738 4 жыл бұрын
You are awesome!
@mipebs
@mipebs 8 жыл бұрын
excellent explanation, thank You!
@edwardbrown7469
@edwardbrown7469 7 жыл бұрын
Running average by accident, I love it!
@ssmahajan
@ssmahajan 6 жыл бұрын
You are my Guru 🙏
@romiltube
@romiltube 7 жыл бұрын
Hi Venkat, first off I enjoy your videos a lot, very helpful for interviews. I have a question related to analytic window function (sum) Could you please confirm which version of MS SQL Server are you using? Not 2008 right? Because, I tried running below query in 2008 version which is quite similar to what you demonstrated in of your slides in above video and it threw syntax error. select *, sum(sales) over(order by sales) as sumofsales from test1......error select *, sum(sales) over() as sumofsales from test1.......no error it ran successfully select *, sum(sales) over(partition by dealer) as sumofsales from test1.......no error it ran successfully The reason why the first query failed makes sense to me, because I believe there is no need at all for a order by argument in analytic window function; partition by argument might be required sometimes though (my 3rd query) I got confused because your query (quite similar to mine, as per above logic it should have failed since it contained order by arguement in analytical window function you demonstrated) ran successfully... Seems like you are using a different SQL version than mine...Just curious to know why your query did not fail :) Thanks again for comprehensive, well articulated and ofcourse free videos :) Regards, Romil
@f1r3shoot
@f1r3shoot 8 жыл бұрын
Отличное видео
@raqibulAlam-su3jo
@raqibulAlam-su3jo 9 жыл бұрын
Thanks
@muhammadrehbarsheikh8498
@muhammadrehbarsheikh8498 9 жыл бұрын
Thanks sir!!
@orxanbabashov
@orxanbabashov 8 жыл бұрын
thanks so much
@kkjjjj3296
@kkjjjj3296 6 жыл бұрын
Ngubk
@anshumanbupathi
@anshumanbupathi Жыл бұрын
venkat sir could u explain realtime queries in fucntions
@cbdbee707
@cbdbee707 6 жыл бұрын
Is there anyway to set the preceeding/following row clause programatically so that i can write one function that can output moving average of variable window width? (without using dynamic queries)
@dengzhonghan5125
@dengzhonghan5125 3 жыл бұрын
Good tutorial. Partition by Gender order by Salary. Why salary is not in ascending order?
@TheEverydayAnalyst
@TheEverydayAnalyst 4 жыл бұрын
If we just use OVER() without specifying anything inside over then it is an equivalent to mentioning UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING.
@UrBoyiVignesh
@UrBoyiVignesh 5 жыл бұрын
i think we have to use ID column for Order By Clause to avoid duplicates.....
@amandeeppanwar9006
@amandeeppanwar9006 4 жыл бұрын
SQL Knowledge Hub on Internet _/\_
@ishanvallabhkamat4254
@ishanvallabhkamat4254 5 жыл бұрын
Why can't we directly use partition by instead of specifying Unbounded values? In video 108 this is achieved by Partitioning it right?
@fanpage-s3
@fanpage-s3 3 жыл бұрын
Your voice sounds like Sadhguru
Difference between rows and range
5:52
kudvenkat
Рет қаралды 86 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 138 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 34 МЛН
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 6 МЛН
Scalar user defined functions in sql server   Part 30
19:07
kudvenkat
Рет қаралды 521 М.
Window Functions in MySQL | Intermediate MySQL
13:29
Alex The Analyst
Рет қаралды 93 М.
SQL Window Functions in 10 Minutes
10:13
Colt Steele
Рет қаралды 88 М.
Cursors in sql server   Part 63
13:58
kudvenkat
Рет қаралды 441 М.
SQL Tutorial - Window Functions
12:41
BeardedDev
Рет қаралды 121 М.
Lead and Lag functions in SQL Server 2012
7:27
kudvenkat
Рет қаралды 162 М.
Learn GROUP BY vs PARTITION BY in SQL
14:03
Anthony Smoak
Рет қаралды 39 М.
Indexes in sql server   Part 35
11:13
kudvenkat
Рет қаралды 844 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 138 МЛН