SQL Ranking Window Functions | ROW_NUMBER, RANK, DENSE_RANK, NTILE, CUME_DIST, PERCENT_RANK

  Рет қаралды 2,796

Data with Baraa

Data with Baraa

Күн бұрын

🎬 Full Advanced Course: • How I'd Learn Advanced...
⬇️ Free Materials (Downloads): datawithbaraa.substack.com
👉 Support & Subscribe to Channel: bit.ly/3GiCVUE
☕ Stay connected
► Subscribe: bit.ly/3GiCVUE
► Join: / @datawithbaraa
► Newsletter: bit.ly/BaraaNewsletter
► LinkedIn: / baraa-khatib-salkini
► Website: www.datawithbaraa.com
📚 Free Courses
✅ Tableau: • Complete HR Tableau Pr...
✅ Tableau Project: • Complete HR Tableau Pr...
✅ SQL Basics: • SQL Tutorial for Begin...
✅ SQL Advanced: • How I'd Learn Advanced...
✅ ChatGPT: • ChatGPT Tutorial for B...
🎓Other Platforms (Certifications)
► Udemy: bit.ly/BaraaUdemy
► Skillshare (1 Free Month): bit.ly/BaraaSkillshare
⭐ My favorite books: kit.co/DataWithBaraa/my-favor...
💻 My gear: kit.co/DataWithBaraa/my-deskt...
⏱️ Timestamp
00:00 Intro
00:00:28 What are Window Ranking Functions?
00:05:48 ROW_NUMBER
00:10:13 RANK
00:14:18 DENSE_RANK
00:18:42 ROW_NUMBER vs RANK vs DENSE_RANK
00:19:45 ROW_NUMBER: TOP-N Analysis
00:23:24 ROW_NUMBER: Bottom-N Analysis
00:27:00 ROW_NUMBER: Assign Unique IDs
00:29:47 ROW_NUMBER: Identify Duplicates
00:35:21 NTILE
00:41:41 NTILE: Data Segmentation
00:45:35 NTILE: Equalizing Loads
00:49:02 Intro Percentage Based Ranking
00:50:10 CUME_DIST
00:53:52 PERCENT_RANK
01:01:40 Summary
#sql #sqlserver #data #analytics
*Please note I may earn a small commission for any purchase through these links, which means at no additional cost to you - Thanks for supporting the channel!*
*All opinions or statements in this video are my own and do not reflect the opinion of the company I work for or have ever worked for*

Пікірлер: 38
@DataWithBaraa
@DataWithBaraa 2 ай бұрын
If you want to see more videos like this, Subscribe for more data tutorials like this :) bit.ly/3GiCVUE ⏱ TIMESTAMPS ⏱ --------------------------------- 00:00 Intro 00:00:28 What are Window Ranking Functions? 00:05:48 ROW_NUMBER 00:10:13 RANK 00:14:18 DENSE_RANK 00:18:42 ROW_NUMBER vs RANK vs DENSE_RANK 00:19:45 ROW_NUMBER: TOP-N Analysis 00:23:24 ROW_NUMBER: Bottom-N Analysis 00:27:00 ROW_NUMBER: Assign Unique IDs 00:29:47 ROW_NUMBER: Identify Duplicates 00:35:21 NTILE 00:41:41 NTILE: Data Segmentation 00:45:35 NTILE: Equalizing Loads 00:49:02 Intro Percentage Based Ranking 00:50:10 CUME_DIST 00:53:52 PERCENT_RANK 01:01:40 Summary Enjoy ☕
@mohammadthousif7439
@mohammadthousif7439 9 күн бұрын
Greatest tutorial on ranking functions across entire internet ever.
@sapbo2284
@sapbo2284 2 ай бұрын
Hi Baraa, Hope you are doing well! Baraa you might don't know how much you are helping people like me.Thanks a million
@fatmaabduarrahman7590
@fatmaabduarrahman7590 24 күн бұрын
I wonder why something like this doesn't have at least hundreds of thousands of views. Thanks for you efforts
@DataWithBaraa
@DataWithBaraa 23 күн бұрын
With your people like you supporting, maybe my content will reach the others ❤️
@davidcere16ceresuela28
@davidcere16ceresuela28 2 ай бұрын
Hi Baraa, you don't realize how amazing your work is! Please, keep it up with the tutorials!! Thanks :)
@DataWithBaraa
@DataWithBaraa 2 ай бұрын
And you don't realize how awesome you are, when you take time a writing me this nice comment 🙂
@narragopichand9982
@narragopichand9982 15 күн бұрын
I didn’t seen any videos on sql with immense detailed explanations.
@Bhargavi-vz1zt
@Bhargavi-vz1zt Ай бұрын
Thank you Baraa! very Informative and I was able to crack my SQL interview because of your SQL videos..
@DataWithBaraa
@DataWithBaraa Ай бұрын
Excellent! Great job 👏
@talkwithjyoti1883
@talkwithjyoti1883 Ай бұрын
your teaching style is mind blowing
@DataWithBaraa
@DataWithBaraa Ай бұрын
Thanks dear ✌️
@ransfordsaddicamoleka2924
@ransfordsaddicamoleka2924 13 күн бұрын
Thanks very much Baraa
@santoshkiran5858
@santoshkiran5858 2 ай бұрын
I'm starting to get the hang of SQL from you're tutorial lecture Simply Brilliant ❤❤❤
@DataWithBaraa
@DataWithBaraa 2 ай бұрын
Great to hear!
@sowmya6471
@sowmya6471 Ай бұрын
Thanks for introducing advance concept Cume_dist(). It is gonna help me in my office work.
@DataWithBaraa
@DataWithBaraa Ай бұрын
Nice, it’s useful function!
@devinanissa7928
@devinanissa7928 Ай бұрын
I really feel blessed that you made this all video. It's really interesting and easy to understand. when the 1st time i watched your video, i am immediately subscribe!! Great Job Baraa!! Thank you
@DataWithBaraa
@DataWithBaraa Ай бұрын
I am aswell blessed to be able to reach kind people like you, thanks for the support and glad you liked it
@My_query
@My_query 2 ай бұрын
Keep doing it bro your explanation makes more sense I bet you.
@DataWithBaraa
@DataWithBaraa 2 ай бұрын
Thanks
@micaelzekarias1537
@micaelzekarias1537 2 ай бұрын
As always I have no word to thank you. God bless u wherever u r.
@mdanisurrahman357
@mdanisurrahman357 2 ай бұрын
Awesome,, pls keep making more extraordinary videos
@sarphoah
@sarphoah Ай бұрын
Thank you so much Baraa! Your videos are so helpful. I appreciate the effort you put into them. Can you please do a video on handling different Date types in SQL?
@DataWithBaraa
@DataWithBaraa Ай бұрын
Thank for the kind words, yes I’ll cover it in my course!
@andrescorrea9640
@andrescorrea9640 2 ай бұрын
Outstanding! 👏🏻👏🏻👏🏻 Thank you so much!
@azaansfunworld4300
@azaansfunworld4300 2 ай бұрын
I am excited even before going through the video ….i am sure I m going to enjoy this … Thanqqqqqq
@CuocSongQuanhTabolbol123
@CuocSongQuanhTabolbol123 2 ай бұрын
Thanks Baraa as always!
@jaideepthanage4934
@jaideepthanage4934 2 ай бұрын
Was waiting for this eagerly!❤
@golden_melodies
@golden_melodies 2 ай бұрын
Thanks alot
@venkateshperumal4222
@venkateshperumal4222 2 ай бұрын
Thank you so much, was waiting for this video eagerly!!!
@DataWithBaraa
@DataWithBaraa 2 ай бұрын
You are welcome, i hope you will enjoy it !
@joewerger8845
@joewerger8845 7 күн бұрын
what is the letter t after the query
@anuboluwaji635
@anuboluwaji635 2 ай бұрын
Hi Baraa, hope all is well. Question: do you know MySQL and if you do, can you please do a tutorial on it?
@jacksmith4257
@jacksmith4257 25 күн бұрын
Whether all of this work same in MySQL server
@gopikrishnasistla8896
@gopikrishnasistla8896 2 ай бұрын
ITALY and SQL both are beautiful only by Baraa sir. From sales.orders) t where rank byproduct=1 Above query after bracket the letter t comes. What it mean Thank you sir
@DataWithBaraa
@DataWithBaraa 2 ай бұрын
Italy is very lovely and amazing culture. The letter t that comes after the closing bracket in your query is an alias for the subquery. In SQL, you can assign an alias to a table or a subquery to simplify references to it in the rest of your query. In SQL Server it is required to give an Alias after each subquery.
@gopikrishnasistla8896
@gopikrishnasistla8896 2 ай бұрын
@@DataWithBaraa thank you sir
🚨 YOU'RE VISUALIZING YOUR DATA WRONG. And Here's Why...
17:11
Adam Finer - Learn BI Online
Рет қаралды 30 М.
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 7 МЛН
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 18 МЛН
SQL Case When Statement | Use Cases | #SQL Course #8
36:19
Data with Baraa
Рет қаралды 1,6 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 461 М.
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 6 МЛН
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 7 МЛН