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 !
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.
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.
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.
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.
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 :)
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
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
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!
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
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🙏.
+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 ua-cam.com/users/kudvenkatplaylists?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 ua-cam.com/video/y780MwhY70s/v-deo.html To receive alerts, when new videos are uploaded, please subscribe to our channel ua-cam.com/users/kudvenkat 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
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)
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
It's been 7 years and still, this tutorial series is far better than every other material on SQL :)
Hands Down, Thanks a lot!
give this guy a medal
why ?
@@RohitKumar-qo7pt Because of the clarity in his presentation, the lucid way of explaining such concepts. He deserves to get a medal.
Seriously.
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 !
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.
You're a natural born teacher. You're doing what you were born to do. Keep up the good work!
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.
This is the best tutorial on windows functions on youtube. Thank you so much for this.
This is gold! I have been struggling to understand Window functions and syntax and your explanation makes it all clear now.
What an amazing teacher! Thank you so much for breaking down these concepts for us! :)
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.
You are awssssssom, spent entire day yesterday. think will view kudvenkat tomorrow sunday. found solution withing 5 minute. GREAT
This video is exceptional, searched whole of the youtube and internet but no one explained so easily and clearly
there are some dedicated and talented teachers I think he is one of them. Tq Venkat garu
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.
would test , thanks for letting us know
Yes, AVG(Salary) OVER () seems to have the same result
Nice tip
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 :)
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
Freely available at this quality is incredible...god bless!
Can't believe this doesn't have more views!
Total hero.....I have 70-461 coming up and you've helped me no end!!!!!
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
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!
The best video on Window functions so far! highly recommend!!
Wow this is my first comment I’ve ever left on UA-cam, you are an amazing teacher I wish I could be mentored by you. From South Africa
Words cannot translate the emotions . Only can say excellent presentation in clearing the concepts. Thank you from core of heart.
Best Tutorial in UA-cam! I Love your detailed Videos! I hope you will start with Analysis (SSAS) one day!
Thank you Venkat!
The best of the very best! Thank you very much. Greetings from Nigeria
You are a gem! Explained and demonstrated so well. Thank you very much good Sir!!
Your tutorials never disappoint! Thanks for sharing your knowledge!
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
Hats off bro...easy to follow and well explained!
this guy is so good at teaching.
This is a really comprehensive tutorial! Thank you so much!
Best video for understanding window functions.
EXELENT !!!!! it is the best for 10 minutes !!! Perfect
Venkat are too good. Unbelievably clear and simple.
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🙏.
very well explained with simplicity. Great Work.
video was straight forward and detailed, thank you for sharing your knowledge
Great sir This video helps me lot thank u so much 🙏🙏
Simplicity of your explanation is remarkable. Keep it up.
keep it up! extremely well made tutorial! :)
WOW.....you are too good in explaining the things..cheers...
OMG Thanks for this absolutely amazing video
Very helpful video, clearly and nicely explained . Thanks !
Great video! Thank you, it is much clearer now!
Thank you so much! Best tutorial!
Thanks for the video. It was really helpful
+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
ua-cam.com/users/kudvenkatplaylists?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
ua-cam.com/video/y780MwhY70s/v-deo.html
To receive alerts, when new videos are uploaded, please subscribe to our channel
ua-cam.com/users/kudvenkat
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
To the point, very nice explanations . Thank you :)
Good attention to detail
Thanks a lot
very very good and clear teaching.
Great explanation 👍🏽
What an explanation! Thank you!
Great Video. Thank you for posting.
Thanks a lot for the videos. They are very well explained.
Can't thank you enough for these videos ! :)
Thanks great video 👍🏽
Very detailed video.... Thank you :)
This is super helpful. Thanks!
Wow. Thanks brother ❤
you made it so clear and precise...thank you
very neat and to the point explanation !
Amazing ! No words !!!
Worth watching
you explained it so well, thankyooou
Thanks man, apreciate your work you've done here :) helpfull, keep doing good work :)
You are like a GOD for me....
really a very detailed explanation.
Thanks! very helpful content
Thank you Venkat Sir.
GREAT JOB!!!
Thank you so much and appreciate your work.
Thank you. That was extremely clear
El Maestro returns
Great video, Many thanks
Great explanation
Very good explanation
Too good, thank you so much
excellent explanation, thank You!
Thank you Venkat
this person is teaching better than paid courses...
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)
Very informative
Running average by accident, I love it!
You are my Guru 🙏
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
Excellent!!!
You are awesome!
venkat sir could u explain realtime queries in fucntions
Why can't we directly use partition by instead of specifying Unbounded values? In video 108 this is achieved by Partitioning it right?
Sir u r great
super helpful
Отличное видео
great..
thanks so much
Ngubk
5 star teacher
Thanks sir!!
Good tutorial. Partition by Gender order by Salary. Why salary is not in ascending order?
i think we have to use ID column for Order By Clause to avoid duplicates.....
Thanks
If we just use OVER() without specifying anything inside over then it is an equivalent to mentioning UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING.
Your voice sounds like Sadhguru
For >> PARTITION BY GENDER ORDER BY SALARY >>>>>> order of salary is correct for FEMALE but why order is incorrect for MALE resultset