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

Поділитися
Вставка
  • Опубліковано 23 лип 2024
  • 🎬 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: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
    #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*
  • Наука та технологія

КОМЕНТАРІ • 106

  • @DataWithBaraa
    @DataWithBaraa  3 місяці тому +6

    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
    @Ascendify5 2 місяці тому +4

    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

  • @khawla092
    @khawla092 7 днів тому +1

    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 🥰

  • @SC-mx4wp
    @SC-mx4wp 13 днів тому +3

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

  • @mohammadthousif7439
    @mohammadthousif7439 6 днів тому +1

    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.

  • @Parvin-m1s
    @Parvin-m1s День тому +1

    Great Tutorial , very good examples with clear explanation, all you need to know about window functions in SQL, you are a legend sir, thank you

  • @daayush6654
    @daayush6654 2 дні тому +1

    Awesome content !!! Loved they way you explain everything with great visuals !! 🐐

  • @ctvtv-ngogiahuy5807
    @ctvtv-ngogiahuy5807 Місяць тому +3

    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 🙂

  • @sowmya6471
    @sowmya6471 3 місяці тому +2

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

    • @DataWithBaraa
      @DataWithBaraa  3 місяці тому

      Very smart! Thanks for the nice words

  • @XYZandRGB
    @XYZandRGB Місяць тому +3

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

  • @juancruz7836
    @juancruz7836 Місяць тому +1

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

  • @FRANELC-ss8sz
    @FRANELC-ss8sz 3 місяці тому +3

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

  • @MegaJohnwesly
    @MegaJohnwesly 2 місяці тому +1

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

  • @ashutoshmishra4781
    @ashutoshmishra4781 Місяць тому +3

    You explain it very nicerly , hatsoff to you bara

    • @DataWithBaraa
      @DataWithBaraa  Місяць тому

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

  • @wapikasamanta4780
    @wapikasamanta4780 2 місяці тому +1

    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.

  • @joyotiegbe1549
    @joyotiegbe1549 Місяць тому +1

    Excellent presentation. Thanks for sharing.

  • @rezanurkabir70
    @rezanurkabir70 3 місяці тому +1

    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.

  • @TheJADHAVRAM
    @TheJADHAVRAM Місяць тому +1

    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.❤

  • @DaddyYow20
    @DaddyYow20 Місяць тому +1

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

    • @DataWithBaraa
      @DataWithBaraa  Місяць тому

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

  • @GowdaKiranGangadhar
    @GowdaKiranGangadhar 3 місяці тому +2

    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 :)

  • @Stuti12345
    @Stuti12345 3 місяці тому +1

    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 місяці тому +1

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

  • @shreyashmhatre9606
    @shreyashmhatre9606 8 днів тому +1

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

  • @adrianoschwenkberg6773
    @adrianoschwenkberg6773 3 місяці тому +2

    Highly educational, thank you

  • @Cabiruh
    @Cabiruh Місяць тому +1

    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! 😊📝

  • @shakir3373
    @shakir3373 Місяць тому +1

    That was super helpful, thank you!

    • @DataWithBaraa
      @DataWithBaraa  Місяць тому

      glad it helped, thanks for the nice comment

  • @DeepakTiwari-et3bd
    @DeepakTiwari-et3bd 24 дні тому +1

    Thank you so much for such an amazing interactive session

  • @sapbo2284
    @sapbo2284 2 місяці тому +1

    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😉

  • @ferripradana4265
    @ferripradana4265 2 місяці тому

    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

  • @gopikrishnasistla8896
    @gopikrishnasistla8896 3 місяці тому +2

    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!

  • @jaideepthanage4934
    @jaideepthanage4934 3 місяці тому +2

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

    • @DataWithBaraa
      @DataWithBaraa  2 місяці тому +1

      You are amazing too for leaving wonderful comment

  • @CuocSongQuanhTabolbol123
    @CuocSongQuanhTabolbol123 3 місяці тому +1

    Awesome sharing. Thanks Baraa!

  • @sureshsp2933
    @sureshsp2933 Місяць тому +1

    Wonderful bro

  • @c0f2a
    @c0f2a Місяць тому +1

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

  • @reemkhaled1334
    @reemkhaled1334 11 годин тому +1

    THANK YOU SO MUCH FOR THIS CONTANT

  • @user-og7vi4ot1i
    @user-og7vi4ot1i 3 місяці тому +2

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

  • @chidimbamalu3490
    @chidimbamalu3490 3 місяці тому +2

    Like before viewing 👍

  • @Shokouhikia
    @Shokouhikia 3 місяці тому +1

    thanks for your valuable contents

  • @apamwamba
    @apamwamba 2 місяці тому +1

    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 ()

  • @leonardoruiz1623
    @leonardoruiz1623 3 місяці тому +1

    Thank you master!

  • @micaelzekarias1537
    @micaelzekarias1537 3 місяці тому +1

    Thanks as always.

  • @vikashsoni9200
    @vikashsoni9200 2 місяці тому +1

    Thank you ❤

  • @alieut.k.wolobah2515
    @alieut.k.wolobah2515 3 місяці тому +1

    Thank you so much Sir ❤❤

  • @gurusasidharpattem4553
    @gurusasidharpattem4553 3 місяці тому +1

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

  • @ychen202
    @ychen202 3 місяці тому +1

    So damn good...

  • @fatihhattatoglu6872
    @fatihhattatoglu6872 3 місяці тому +1

    excellent explanation as always..

  • @lakshmie3203
    @lakshmie3203 3 місяці тому +1

    Excellent Master🎉🎉❤

  • @makarsh29
    @makarsh29 2 місяці тому +1

    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 ???

  • @kom_senapati
    @kom_senapati 3 місяці тому +1

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

  • @emilianolopezfilippini8220
    @emilianolopezfilippini8220 9 годин тому +1

    Cant thank enough❤

  • @kameshkannan6443
    @kameshkannan6443 3 місяці тому +3

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

  • @norianekrouf7279
    @norianekrouf7279 8 днів тому

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

  • @Cuxaven
    @Cuxaven Місяць тому +1

    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

  • @yashshah8688
    @yashshah8688 3 місяці тому +1

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

  • @ankitkeshari9362
    @ankitkeshari9362 20 днів тому +1

    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  19 днів тому +1

      @@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!

  • @cretive549
    @cretive549 Місяць тому +2

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

    • @DataWithBaraa
      @DataWithBaraa  Місяць тому +2

      Hi, i explained Joins in details in the Basic SQL Course, please check that out ua-cam.com/video/NTgejLheGeU/v-deo.html

    • @cretive549
      @cretive549 Місяць тому +2

      @@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  Місяць тому +1

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

    • @cretive549
      @cretive549 Місяць тому +1

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

  • @calebfavour3380
    @calebfavour3380 13 днів тому +1

    Please can you do python course? You teach differently.

  • @nikhilsharma-jj6vd
    @nikhilsharma-jj6vd Місяць тому +1

    How can I find the dataset . please help

    • @DataWithBaraa
      @DataWithBaraa  Місяць тому

      Hi it is in the download link in video description 🙂

    • @nikhilsharma-jj6vd
      @nikhilsharma-jj6vd Місяць тому +1

      @@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 Місяць тому +1

      @@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

  • @norianekrouf7279
    @norianekrouf7279 8 днів тому

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

  • @Karansamal11
    @Karansamal11 2 місяці тому

    SELECT Valuable_day FROM Days
    WHERE Valuable_day = You;

  • @drorbenami
    @drorbenami 29 днів тому +1

    Clearer at .75 speed….

    • @DataWithBaraa
      @DataWithBaraa  23 дні тому +1

      I will slow down 😉

    • @drorbenami
      @drorbenami 22 дні тому +1

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