SQL Window Functions Basics | Partition By, Order By, Frame |

Ғылым және технология

In Part 1, we'll explore the fundamentals of SQL window functions. You'll understand what window functions are and why we need them, as well as the differences between SQL Group By and window functions.
Then, we will dive deeper into the basic components of window syntax, including window functions, Over, Partition By, Order By, and Frame clauses.
At the end, we'll cover the 4 rules & limitations of using SQL window functions.
As usual, you'll grasp the concept behind each topic before practicing in SQL using simple examples.
🔔 If you enjoyed this video and found it helpful, please support the channel by Subscribing, liking and commenting. bit.ly/3GiCVUE
--------------------------------------------------
⏬ FREE DOWNLOAD LINKS ⏬
--------------------------------------------------
Access all course materials: bit.ly/advancedsqlcourse
You can find list to all courses & materials in my substack page datawithbaraa.substack.com/su...
----------------------------------------------------
🎓 Free Courses On KZread 🎓
-----------------------------------------------------
✅ Tableau Course
• Tableau Ultimate Full ...
✅ SQL Course - Basic concepts
• SQL Tutorial for Begin...
✅ AI Chat GPT Course
• ChatGPT Tutorial for B...
---------------------------------
☕ FOLLOW ME ☕
---------------------------------
Baraa Khatib Salkini
Website: www.datawithbaraa.com
Channel: bit.ly/3GiCVUE
LinkedIn: / baraa-khatib-salkini-8...
Email: baraa@datawithbaraa.com
---------------------------------
⏱️ TIMESTAMPS ⏱️
---------------------------------
00:00 intro
00:21 Window vs Group By
12:40 Window Syntax
17:44 Partition By Clause
27:55 Order By Clause
32:13 Frame Clause
46:39 4 Rules of Window
54:17 Summary
Thank you for watching! Remember to like, share, and subscribe for more high quality content on data. Stay curious, stay connected!
#SQL #DataAnalytics #SQLCourse #AdvancedSQL #Data #Analytics #Database #DataScience #Programming #Tech #Technology #Coding #DataAnalysis #SQLServer #BigData #DataManagement #Query #MasteringSQL #SQLTutorial #DataEngineering #bigdata #businessintelligence #datawithbaraa

Пікірлер: 100

  • @DataWithBaraa
    @DataWithBaraa3 ай бұрын

    If you want to see more videos like this, Subscribe for more data tutorials like this :) bit.ly/3GiCVUE --------------------------------- ⏱ TIMESTAMPS ⏱ --------------------------------- 00:00 intro 00:21 Window vs Group By 12:40 Window Syntax 17:44 Partition By Clause 27:55 Order By Clause 32:13 Frame Clause 46:39 4 Rules of Window 54:17 Summary Enjoy !

  • @nikhilsharma-jj6vd

    @nikhilsharma-jj6vd

    Ай бұрын

    Hi, Can you also share the presentation and cheat sheet for this course on your website. That'd be really helpful

  • @Ascendify5
    @Ascendify52 ай бұрын

    successfully completed your sql 4 hours course , if i have a teacher like u i can master advance sql in 2months your course is criminally underrated,i have hope your channel will get what it deserves

  • @SC-mx4wp
    @SC-mx4wp10 күн бұрын

    Bro, TOP MOST BEST CHANNEL ON KZread 🎉🎉🎉. KEEP IT UP. PLEASE HAVE MORE COMPLEX ON SQL + POWER BI BRO 🙏🙏🙏🎉🎉🎉

  • @khawla092
    @khawla0925 күн бұрын

    Cant thank you enough for this course, and how it easily and visually explained, perfect timing for my interview, we need you in our lives 🥰

  • @mohammadthousif7439
    @mohammadthousif74394 күн бұрын

    Your explanations are literally top notch easy to understand and follow, the examples are also right on point. Most importantly the way you explain with your diagrams just makes it super easy for a beginner to grasp such complex and important concepts. You deserve a lot of appreciation and support for the kind of content you are doing. Big support and love, keep doing the excellent work.

  • @ctvtv-ngogiahuy5807
    @ctvtv-ngogiahuy5807Ай бұрын

    I wish I could subscribe a thousand times!!! one single subscription is not enough to justify this level of quality for your content !!!

  • @DataWithBaraa

    @DataWithBaraa

    Ай бұрын

    Wow thanks so much, your support means a lot for me and motivate me to make more content 🙂

  • @shreyashmhatre9606
    @shreyashmhatre96065 күн бұрын

    Hello, your teaching style is simple yet impactful, if you share dataset along with it, we can practice while watching

  • @sowmya6471
    @sowmya64713 ай бұрын

    This is actually a Granularity Level of explaination.. What a LOD explaination 👏👏👏👏👏

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    Very smart! Thanks for the nice words

  • @XYZandRGB
    @XYZandRGBАй бұрын

    Excellent presentation. I appreciate your hand-drawn diagrams and breakdowns.

  • @DataWithBaraa

    @DataWithBaraa

    Ай бұрын

    Thank you! I'm glad you enjoyed it!

  • @ashutoshmishra4781
    @ashutoshmishra4781Ай бұрын

    You explain it very nicerly , hatsoff to you bara

  • @DataWithBaraa

    @DataWithBaraa

    Ай бұрын

    hank you so much! I'm really glad you liked it! 🙏😊

  • @FRANELC-ss8sz
    @FRANELC-ss8sz3 ай бұрын

    YOUR EXPLAINATION ARE SOOOOO GOOD I CAME TO WINDOW FUNCTION BY SIMPLE WAY THANK U LOTSSSS ❤❤ BARAA

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    Thanks for the nice feedback !

  • @juancruz7836
    @juancruz783628 күн бұрын

    Thank you!! Really liked it, hope you complete this incredible course soon! We all appreciate this material :D

  • @DataWithBaraa

    @DataWithBaraa

    28 күн бұрын

    Thanks dear :)

  • @MegaJohnwesly
    @MegaJohnweslyАй бұрын

    Yesterday, I messed up in test with window functions...Came here! This really helped me. Thank alot Baraa!! You are really gifted with teaching!!

  • @joyotiegbe1549
    @joyotiegbe1549Ай бұрын

    Excellent presentation. Thanks for sharing.

  • @DataWithBaraa

    @DataWithBaraa

    Ай бұрын

    You are welcome thanks !

  • @wapikasamanta4780
    @wapikasamanta4780Ай бұрын

    You explain the complex things with simple steps and make it easily understandable, you are irreplaceable. Thank you for your efforts for sharing the knowledge.

  • @GowdaKiranGangadhar
    @GowdaKiranGangadhar3 ай бұрын

    Hi Bara, I must commend the explanation of window functions provided in the video and it was truly exceptional and thorough. Overall, the explanation was superb!!!!

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    Thank you for the amazing feedback :)

  • @DaddyYow20
    @DaddyYow2029 күн бұрын

    wow! very useful tutorial, with a clear explanation and example. Hoping more content about data analysis you deserve a subscribed thank you!

  • @DataWithBaraa

    @DataWithBaraa

    29 күн бұрын

    Much appreciated! I will keep pushing as long you guys are enjoying my content

  • @TheJADHAVRAM
    @TheJADHAVRAMАй бұрын

    I have seen multiple videos related to Tableau and SQL, but no one explains them like you do. You helped me a lot to clear up Tableau and SQL concepts.❤

  • @DataWithBaraa

    @DataWithBaraa

    Ай бұрын

    Thanks for the kind words ❤️

  • @rezanurkabir70
    @rezanurkabir703 ай бұрын

    Your dedication to providing valuable content is truly commendable. The effort you put into each video is evident and greatly appreciated by your audience. Your channel serves as a reliable source of information and guidance for viewers of all backgrounds. Thank you for consistently delivering high-quality content that enriches the lives of many. Keep up the excellent work!

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    Thanks for taking time writing this amazing feedback, I really appreciate it.

  • @adrianoschwenkberg6773
    @adrianoschwenkberg67733 ай бұрын

    Highly educational, thank you

  • @Stuti12345
    @Stuti123453 ай бұрын

    Thank you so much! You are the best teacher to learn from. I'm an aspiring data analyst from a completely different education background and your courses have helped me so much. I am learning Tableau from you and now advanced SQL. I can't thank you enough.

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    Tons of Thanks for your nice words, I'm glad that everyone is enjoy the course :)

  • @user-og7vi4ot1i
    @user-og7vi4ot1i3 ай бұрын

    hi Baraa thank you so much for your amazing videos please make videos on sql performance tuning and debugging please

  • @Cabiruh
    @CabiruhАй бұрын

    The hand-drawn diagrams were super helpful in understanding the topic. Great teaching methodology!

  • @DataWithBaraa

    @DataWithBaraa

    Ай бұрын

    Thanks a lot! I'm happy to hear the hand-drawn diagrams made the topic clearer! 😊📝

  • @sapbo2284
    @sapbo22842 ай бұрын

    Hi Baraa, You have such command over the subject and your teaching methodology is excellent.This is the first time I've deeply understood the concepts of window functions.Thank you so much.

  • @DataWithBaraa

    @DataWithBaraa

    2 ай бұрын

    Thanks for taking time writing this wonderful comment i really appreciate and happy to hear my content is helping. Have a nice day😉

  • @apamwamba
    @apamwamba2 ай бұрын

    Excellent stuff Bara!! I love the illustrations esp on Window Frames. Please confirm on the default window frame. Is it RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW / ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW or both. Also what is the default window frame for ()

  • @gopikrishnasistla8896
    @gopikrishnasistla88963 ай бұрын

    Hi sir . As per this video @time 57 minutes and 11 seconds Baraa sir videos for all learners. From my side Lot of thanks for your idea , thinking and hard work which will benefit all learners.

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    Thanks and welcome, so nice of you!

  • @makarsh29
    @makarsh292 ай бұрын

    select Baraa sum(very lovely explanation) over(such complicated topic, Lots of Blessing and love ❤❤❤❤ to you) from Akarsh; ---i know its hard for you to ignore the syntax error (but i think you got it) although, at 45:24 the default frame is 'RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW ' not row (in my knowledge) and how can i use frame in data analysis ???

  • @ferripradana4265
    @ferripradana42652 ай бұрын

    hi Bara, I'm a programmer, not a data scientist, but thanks a lot. Ten years ago, Windows functions didn't exist; I just found out in 2022, but I didn't know how they worked. And you explained clearly to us. Thanks

  • @CuocSongQuanhTabolbol123
    @CuocSongQuanhTabolbol1233 ай бұрын

    Awesome sharing. Thanks Baraa!

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    your welcome

  • @DeepakTiwari-et3bd
    @DeepakTiwari-et3bd21 күн бұрын

    Thank you so much for such an amazing interactive session

  • @DataWithBaraa

    @DataWithBaraa

    21 күн бұрын

    You are welcome :)

  • @jaideepthanage4934
    @jaideepthanage49342 ай бұрын

    Bhai....You are amazing teacher! Salute to you from India❤

  • @DataWithBaraa

    @DataWithBaraa

    2 ай бұрын

    You are amazing too for leaving wonderful comment

  • @shakir3373
    @shakir3373Ай бұрын

    That was super helpful, thank you!

  • @DataWithBaraa

    @DataWithBaraa

    Ай бұрын

    glad it helped, thanks for the nice comment

  • @sureshsp2933
    @sureshsp2933Ай бұрын

    Wonderful bro

  • @chidimbamalu3490
    @chidimbamalu34903 ай бұрын

    Like before viewing 👍

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    :)

  • @Shokouhikia
    @Shokouhikia3 ай бұрын

    thanks for your valuable contents

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    So nice of you

  • @c0f2a
    @c0f2aАй бұрын

    Thank you so much! I have learned a lot from this vid :)

  • @DataWithBaraa

    @DataWithBaraa

    29 күн бұрын

    I'm so glad!

  • @kom_senapati
    @kom_senapati3 ай бұрын

    Fantastic content Baraa, I love ur videos keep up good work

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    Thanks, i will try my best :)

  • @fatihhattatoglu6872
    @fatihhattatoglu68723 ай бұрын

    excellent explanation as always..

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    Glad you liked it!

  • @gurusasidharpattem4553
    @gurusasidharpattem45533 ай бұрын

    @baara can you post the full video for members only access ?

  • @ankitkeshari9362
    @ankitkeshari936217 күн бұрын

    Baraaa, you are the best guru for me, but could you please change your microphone or speak louder so that we can clearly hear your voice without subtitles?

  • @DataWithBaraa

    @DataWithBaraa

    17 күн бұрын

    @@ankitkeshari9362 thanks for the kind words ❤️. Oh I didn’t notice that my sound is not clear, are the others having same issue? I will try to be loader in the next videos!

  • @Cuxaven
    @CuxavenАй бұрын

    Great video, thank you! A bit curious, what's the software you're using to draw diagrams and stuff ?

  • @DataWithBaraa

    @DataWithBaraa

    Ай бұрын

    Thank you, I use drawio and procreate

  • @cretive549
    @cretive549Ай бұрын

    Sir please make a video on multiple tables joins in detail and also tell how the on condition works in joins.

  • @DataWithBaraa

    @DataWithBaraa

    Ай бұрын

    Hi, i explained Joins in details in the Basic SQL Course, please check that out kzread.info/dash/bejne/gIibx8yFmMitlbg.html

  • @cretive549

    @cretive549

    Ай бұрын

    @@DataWithBaraa But sir, in that tutorial you explained the concept of join using only 2 tables, but I am confused about more than 2 tables join.

  • @DataWithBaraa

    @DataWithBaraa

    Ай бұрын

    @@cretive549 noted I will do SQL project at the end of the course and tackle this topic

  • @cretive549

    @cretive549

    Ай бұрын

    @@DataWithBaraa please sir make seperate video on that. I want to learn multiple tables join in detail

  • @micaelzekarias1537
    @micaelzekarias15373 ай бұрын

    Thanks as always.

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    You are always welcome

  • @alieut.k.wolobah2515
    @alieut.k.wolobah25153 ай бұрын

    Thank you so much Sir ❤❤

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    you are very welcome!

  • @vikashsoni9200
    @vikashsoni92002 ай бұрын

    Thank you ❤

  • @DataWithBaraa

    @DataWithBaraa

    2 ай бұрын

    Welcome 😍

  • @lakshmie3203
    @lakshmie32033 ай бұрын

    Excellent Master🎉🎉❤

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    Thank you! 😃

  • @leonardoruiz1623
    @leonardoruiz16233 ай бұрын

    Thank you master!

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    You are welcome 😎

  • @norianekrouf7279
    @norianekrouf72796 күн бұрын

    Excellent video bro ! Can u make a total project in SQL

  • @kameshkannan6443
    @kameshkannan64433 ай бұрын

    How you create animation videos what kind of tool you using?

  • @DataWithBaraa

    @DataWithBaraa

    3 ай бұрын

    I used ProCreate :)

  • @yashshah8688
    @yashshah86883 ай бұрын

    Hi Baraa, Can you please add interview questions as well?

  • @ychen202
    @ychen2023 ай бұрын

    So damn good...

  • @calebfavour3380
    @calebfavour338011 күн бұрын

    Please can you do python course? You teach differently.

  • @norianekrouf7279
    @norianekrouf72796 күн бұрын

    In real situation when we used frame what is the goal?!

  • @nikhilsharma-jj6vd
    @nikhilsharma-jj6vdАй бұрын

    How can I find the dataset . please help

  • @DataWithBaraa

    @DataWithBaraa

    Ай бұрын

    Hi it is in the download link in video description 🙂

  • @nikhilsharma-jj6vd

    @nikhilsharma-jj6vd

    Ай бұрын

    @@DataWithBaraa I got the data set thank you so much. When can we expect the sketchnotes.. For SQL window functions.. Are you planning to release them just like Tableau?

  • @DataWithBaraa

    @DataWithBaraa

    Ай бұрын

    @@nikhilsharma-jj6vd yes but at the end of the course :)

  • @nikhilsharma-jj6vd

    @nikhilsharma-jj6vd

    Ай бұрын

    @@DataWithBaraa I'm waiting eagerly.. I've watched two videos and can surely say. No one has expanded and explained the window functions like you've done. A big huge thank you. ❤️

  • @DataWithBaraa

    @DataWithBaraa

    Ай бұрын

    @@nikhilsharma-jj6vd really glad you liked it, and your support to the channel will help reach others ! Thanks for the kind words

  • @Karansamal11
    @Karansamal11Ай бұрын

    SELECT Valuable_day FROM Days WHERE Valuable_day = You;

  • @drorbenami
    @drorbenami27 күн бұрын

    Clearer at .75 speed….

  • @DataWithBaraa

    @DataWithBaraa

    20 күн бұрын

    I will slow down 😉

  • @drorbenami

    @drorbenami

    20 күн бұрын

    @@DataWithBaraa no problem….very good lessons….I shared your videos with all the students in my school…..

Келесі