SQL Aggregate Window Functions | COUNT, AVG, SUM, MAX, MIN |

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии • 161

  • @DataWithBaraa
    @DataWithBaraa  7 месяцев назад

    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 Aggregate Functions?
    00:02:50 Window Function: COUNT
    00:19:33 Window Function: SUM
    00:26:58 Window Function: AVG
    00:36:02 Window Function: MIN & MAX
    00:45:39 Running Total & Rolling Total
    00:55:15 Moving Average
    01:04:22 Summary
    Enjoy ☕

  • @pinakastra
    @pinakastra Месяц назад +6

    I'm not sure whether you would ever come across my comment or not, but just need to say a very big "Thank You". I am one of those thick headed people who cannot understand any concept easily unless it's broken into very basic pieces. Truth be told I have been working with Python from last 5+ years, I have worked on a lot a big projects including Backend, Automation, AI/ML projects, etc. successfully, even led a team of people but I always used to run away from SQL as I felt very bored whenever I started. But you my friend, the way you have taught me SQL is just out of the box. The only person who actually made me interested in learning this is "YOU" and I will always be thankful to you for that, forever.

    • @DataWithBaraa
      @DataWithBaraa  Месяц назад

      Wow amazing thank you for taking your time writing your experience, I am really glad to help!

  • @SAhmBal89
    @SAhmBal89 20 дней назад +2

    I've consumed many other contents and even taken paid courses, but it felt like something was still missing to help me understand things clearly. However, after watching your content, I feel like I don't need to look elsewhere. The way you explain advanced queries in simple terms is superb. For me, your content is truly invaluable - it's like finding treasure. Thank you.

  • @MALIK_AR7
    @MALIK_AR7 8 месяцев назад +22

    u deserve a Nobel peace price for ur services barra

  • @kevinrambo
    @kevinrambo Месяц назад +2

    Superbly explained and you speak very fluently. No 'ums', 'uhs', 'likes', and 'ya knows' that are so common. Thank you for posting, big fan here!

  • @jephersonventura7510
    @jephersonventura7510 4 месяца назад +4

    This is my 2nd comment on your videos and I will again say that you are doing wonders in teaching me advanced things. 6 months ago I lost my job and been looking to pivot into Analytics. You've now empowered me with tools and education that I thought was impossible.
    Thank you again for your hard work. Hope you see this comment and see the impact you're having on thousands of people!

    • @DataWithBaraa
      @DataWithBaraa  4 месяца назад +4

      Oh wow, ofc i read each comment, first of all i am sorry that you lost your job, but in other hand i am happy to hear that i was able to make a change in your life, this is exactly why i make these courses for free to help people and specially students that can’t afford paying for expensive courses. Your comments has motivates me more than you imagine to keep pushing and generate more content, because it is not easy to do as this is side thing i do beside my job. Thanks again and i hope you find a better job soon, keep me updated please.

  • @LMessii10
    @LMessii10 2 месяца назад +1

    Criminally underrated, after spending 2 days searching numerous videos about these SQL functions and getting confused everytime, thankfully i found your channel. Crystal clear explanation. Absolutely the best ! I am highly obliged Baara. Thank you

  • @poojabihani-m9d
    @poojabihani-m9d 3 месяца назад +3

    Thank you Bara, this is my 2nd comment as this is my 2nd tutorial which I watched from your channel. and all i want to say Thank You so Much, You are an answer to my prayers as i remember yesterday i was crying because I Have watched alot of tutorials on youtube for did not satisfied with the content and teaching style and today i found your channel and tears of happiness are flowing through my eyes as till this time i have completed 2 of your tutorial on window function and make notes and i am getting everything you are explaining and understanding each of these topics , PLEASE NEVER STOP PROVIDING THESE TOP NOTCH CONTENT AND waiting for more advanced tutorials ( stored procedures, triggers, indexes and more) . Thank you so much for providing these contents for free as there are students like me who cannot afford expensive courses and there are you an angel to me , really made my day and plays a very important role in my life !!!

  • @PowerBiWithVivek
    @PowerBiWithVivek 21 день назад +1

    I just cant get enough of it, such a well explained tutorial, i have just watched the 2 hours of window functions, and feel i am hungry for more, such a nice tutorial.

  • @wonderoverload0
    @wonderoverload0 12 дней назад +2

    So impressive that I just bought your Tableau course on Udemy.

  • @firstNamLastName-x6n
    @firstNamLastName-x6n Месяц назад +1

    what a teacher you are man..! damn good... thank for this tutorials..

  • @alexshat4715
    @alexshat4715 Месяц назад +1

    Baraa thank you for the detailed explanation, not every teacher can explain complex things with simple examples. I am very glad that I came across your videos) Thank you for the excellent content and knowledge.

  • @apostoloskozanitis5688
    @apostoloskozanitis5688 27 дней назад +1

    A massive thanks to you Bara for offering to us this really precious content ! We really apreciate it

    • @DataWithBaraa
      @DataWithBaraa  27 дней назад

      @@apostoloskozanitis5688 thanks dear glad you liked it ❤️❤️

  • @azaansfunworld4300
    @azaansfunworld4300 7 месяцев назад +2

    I don't miss any of your videos. I have never seen anyone explaining so clearly, feels like wow!

    • @DataWithBaraa
      @DataWithBaraa  7 месяцев назад

      Wow amazing feedback thanks for supporting 😀

  • @maoquanjiao2857
    @maoquanjiao2857 11 дней назад +1

    Thanks your great work for The SQL and Tableau. That gave me a lot of helping for Data Analysis project. Your are the best Teacher!!

  • @samhudaya7549
    @samhudaya7549 8 месяцев назад +4

    Your content is exceptional, especially considering it's freely available. I've watched your entire Tableau series, and the concepts are crystal clear. Much appreciated!
    Can you do looker videos also

    • @DataWithBaraa
      @DataWithBaraa  8 месяцев назад

      Thank s I appreciate your words, I will consider it 😊

  • @umarahmad2817
    @umarahmad2817 3 месяца назад

    Dear Bara, I am from Pakistan. I have no words, to describe my love and gratitude for you. Only Allah can give you better Jaza(reward).

  • @GowdaKiranGangadhar
    @GowdaKiranGangadhar 7 месяцев назад +2

    Hey, Bara! Your explanation was clear and easy to follow. I really appreciated how you broke down all the topics step by step. Now, I'm eagerly awaiting for the next video

  • @sakshideshmukh2130
    @sakshideshmukh2130 4 месяца назад +2

    absolutely the best advance SQL course out there!

  • @SahilGupta-s2w
    @SahilGupta-s2w Месяц назад +1

    Best faculty to master Sql for data analysis🎉❤

  • @ImtiyazMohammed-mp8mp
    @ImtiyazMohammed-mp8mp Месяц назад +1

    The time and effort you've put is evident, love the explanation and the visualization. I know you are at 36k subscribers now but soon it will be millions InshaAllah. Love your work. Thank you.

  • @DivyYadav-hg2js
    @DivyYadav-hg2js 2 месяца назад +2

    please dont stop braa loved ur channel

  • @akashyuvaraj7275
    @akashyuvaraj7275 Месяц назад +1

    Love from India Thankyou for wonderful tutorial sir

  • @arbazblog786
    @arbazblog786 8 дней назад +1

    bara baro, first time i have seen master of sql in youtube and you have made advance sql in easiest and simple , thank you a lot bro. plz make more video regrading complet python tool

  • @DivyYadav-hg2js
    @DivyYadav-hg2js 2 месяца назад +1

    ur amaing baraa im a student and in love with ur videos highly recommend this channel for complete information as on all the rest channel no one is providing indepth clarity and lacking the complete information ur amazing my friend

  • @AchalZensar
    @AchalZensar 8 месяцев назад +1

    Awesome tutorials on Window Functions. Very detail-oriented. Keep up the great work Baraa!

  • @Humanity_matters_1st
    @Humanity_matters_1st 4 месяца назад +1

    Wow, this tutorial was super helpful!
    You explained everything so clearly and made even the tricky parts easy to understand.
    Thanks for taking the time to create such high-quality content-can't wait to watch more of your videos!

    • @DataWithBaraa
      @DataWithBaraa  4 месяца назад

      Thanks for your kind support, glad you liked it ❤️

  • @MuhammadEhtisham-cm5vr
    @MuhammadEhtisham-cm5vr 5 месяцев назад +1

    the best content and page i ever found , plz complete the series , you are the best bara !

    • @DataWithBaraa
      @DataWithBaraa  5 месяцев назад

      @@MuhammadEhtisham-cm5vr thanks 🙏 I’ll do my best ❤️

  • @user-wc1wu3ls9d
    @user-wc1wu3ls9d 5 месяцев назад +5

    Wacthing from Indonesia, you are the best teacher i found in this platform

    • @DataWithBaraa
      @DataWithBaraa  5 месяцев назад +1

      Love from Germany ! Thanks 🙏

  • @ayushshukla5255
    @ayushshukla5255 7 месяцев назад +2

    Sir, you are amazing whether we talk about skills or presentation visuals or anything , Just a humble request please create a full tutorial for SQL advanced

    • @DataWithBaraa
      @DataWithBaraa  7 месяцев назад +1

      Nice to hear, I am working on it 👍

  • @klid662
    @klid662 9 дней назад

    Bro, i have learn from you about tableau and then try to learn sql. You are far superior than other youtuber due to give explanation each concept

  • @rajkumarpandey3788
    @rajkumarpandey3788 2 месяца назад +1

    This was amazing thing which I have seen ever for SQL teaching skills, it will give more values to your teaching if you also provides the ppt which you are presenting for last movement revision.

  • @vikashsoni9200
    @vikashsoni9200 7 месяцев назад +2

    Thank you, sir. You have great knowledge. Your teaching style is very good.

  • @tomylapoiss452
    @tomylapoiss452 2 месяца назад

    Thank you this tutorial. At 26:54 when you are calculating the percentage contribution by product, you actually did the contribution by order… I was expecting you to group sales by product before dividing by the total sales.

  • @ekambat
    @ekambat 2 месяца назад +1

    undoubtedly the best..Thanks Baraa

  • @khalidazizi8346
    @khalidazizi8346 5 месяцев назад

    I don't know how to appreciate you. You are the best among all

  • @Dennisaj
    @Dennisaj 5 месяцев назад +1

    *"This is the most CRIMINALLY UNDERRATED RUclips channel barn NONE!!!" Brah... Can you imagine if you did an entire 20-40 hour course on Java, C#, Python, or C++?*

    • @DataWithBaraa
      @DataWithBaraa  5 месяцев назад +1

      @@Dennisaj thanks! Sadly over 75% of viewer watching continues my content, don’t support the channel by subscribing, liking and commenting. Which leads RUclips algorithm not to suggest my content with others. I hope in future that I can reach more people otherwise I will be forced to stop or make my courses with payment which I really hate to do and try to keep it for free because there are many students that can’t effort to buy courses.

    • @sreenidhi3342
      @sreenidhi3342 4 месяца назад

      Thanks a lot ​@@DataWithBaraa

  • @dayal4256
    @dayal4256 13 дней назад

    Very Big Thank you for cutting edge clear content with perfect real time examples. Expecting More Valuable Content from your side like this , Once Thank you so much for the Content and your teaching style !!

  • @rezanurkabir70
    @rezanurkabir70 8 месяцев назад +1

    Thank you for another fantastic SQL tutorial! Your explanations are clear and easy to follow. 👌

  • @OscarBalwin
    @OscarBalwin 6 месяцев назад +1

    Thank you for your dedication in helping us all in expanding our knowledge and understanding! You are really above and beyond instructor -big appreciation Baraa

    • @DataWithBaraa
      @DataWithBaraa  6 месяцев назад

      Hi Oscar, thanks for the amazing feedback! I really appreciate it.

  • @shubh_pokharkar8145
    @shubh_pokharkar8145 3 дня назад +1

    sum(expression ) over( partition by expression order by expression frame(row or range btw lower limit to higher
    ) in over inside parenthesis we write or define window or partition on which function to be exectuded , use partition by if want to creatre multiple windows in table for calculations and order by to sort the rows inde wondows or entire window and frame clause is used to define we want function to be executed on entire prtition or subset of rows in that partition

  • @DivyYadav-hg2js
    @DivyYadav-hg2js 2 месяца назад +2

    im glad i found u bara

  • @FirangizMuslumzada
    @FirangizMuslumzada 4 месяца назад +1

    this course is just superb! you are the teacher of all teachers . cheers, baraa!

  • @srikarreddy8252
    @srikarreddy8252 4 месяца назад +1

    This is THE BEST video on aggregated window functions!!

  • @ashutoshmishra4781
    @ashutoshmishra4781 6 месяцев назад +2

    Your technique of explaining by visual are just amazing🔥🔥

    • @DataWithBaraa
      @DataWithBaraa  6 месяцев назад

      Thanks a lot! I'm glad you enjoy it! 🎉🔥

  • @letsdomistakes
    @letsdomistakes 4 месяца назад +1

    Thank you Baraa for these amazing tutorials.

    • @DataWithBaraa
      @DataWithBaraa  4 месяца назад

      @@letsdomistakes you are welcome dear!

  • @MalayKumar1000
    @MalayKumar1000 5 месяцев назад +1

    Hey! Baraa...thank you so much. You have been the guiding light for me. Not sure if there is someone else who can explain these topics with so much alacrity. Will surely recommend you to every other student I meet.

  • @hussamoulan2260
    @hussamoulan2260 Месяц назад +1

    You are amazing Sir, your slides, your way of explaining things, is just fabulous. My English is not well but you explain things in such a way that even a person like me can understand it very well❤

  • @simonameshkova7149
    @simonameshkova7149 7 месяцев назад +1

    Hello, Baraa :) Already gone through the SQL and Advanced SQL courses and half of Tableau course so far and appreciate your work - it's easily understandable and you make even the difficult parts seem easy.
    Can you extend a little bit the explanation for the aggregate functions with DISTINCT - count, sum etc. It'll be really helpful.

    • @DataWithBaraa
      @DataWithBaraa  7 месяцев назад

      Hi, I really appricate your feedback and happy to hear you are enjoying the content. I will try to add it throughout the course.

    • @simonameshkova7149
      @simonameshkova7149 7 месяцев назад

      @@DataWithBaraa Thanks for your answer. Can you share how often will you upload a new video as part of the Advanced SQL Course considering the complexity of the topics of course? Can't wait for the next one. :)

  • @FRANELC-ss8sz
    @FRANELC-ss8sz 8 месяцев назад +2

    Baraa it's just like a wowwwwww Detailed explaination super❤❤❤ from india

  • @berno10
    @berno10 4 месяца назад

    Awesome! Awesome! instructor, so glad I found your page your teaching skills are top-notch. Thank you for sharing with us

  • @Bhargavi-vz1zt
    @Bhargavi-vz1zt 6 месяцев назад +1

    love the way you explain!! Thank you for such informative videos.

  • @Sathish-fugo
    @Sathish-fugo 3 месяца назад

    Hi , you helped me a lot through your Lecture .Now I got a better knowledge on SQL . Thanks for your Work . Love From INDIA ❤

  • @muhamedhalil
    @muhamedhalil 4 месяца назад +1

    Amazing content. Keep these videos coming, they are priceless.

  • @OrtikAbdakimov
    @OrtikAbdakimov 4 месяца назад +1

    the best sql tutorial course !!! Thank you for your effort and contribution! Please continue it as u showed the road map for sql in the first video. Thank you

  • @irfanshaikh-ck5lz
    @irfanshaikh-ck5lz 2 месяца назад +1

    ❤ Love from the india baraa keep posting videos regularly

  • @hemucool5678
    @hemucool5678 3 месяца назад +1

    Very much appreciated. Top-notch classes!

  • @baobanks1692
    @baobanks1692 2 месяца назад +1

    Best tutorial ever i mean ever!!!!!!!!

  • @anjalisingh1205
    @anjalisingh1205 2 месяца назад +1

    Hello Baraa!
    Your SQL tutorials have been incredibly helpful in my learning journey. You're the best tutor I've found on RUclips.
    I downloaded the database file you provided but unfortunately, I am having trouble unzipping it. I’ve tried several solutions, but it seems the file might be corrupted. Could you please re-upload it?
    Thank you for your help, and keep up the fantastic work!

  • @purushottammitra1258
    @purushottammitra1258 5 месяцев назад +1

    Awesome Content Baraa!! Love from India!

    • @DataWithBaraa
      @DataWithBaraa  5 месяцев назад

      thanks love back from Germany !

  • @Stranger360yt
    @Stranger360yt 2 месяца назад +2

    Man your videos are awesome. Easy to grasp the concept. And may I know how to get the database which your using in the video?

  • @daayush6654
    @daayush6654 4 месяца назад +1

    Amazing explanations with the visuals

  • @amarpawar-tl5we
    @amarpawar-tl5we 27 дней назад +1

    Pls give download option for downloading the material. unable to download queries and material ! Please check at once.
    Amazing content with great teacher !!! Thank you.

  • @santoshkiran5858
    @santoshkiran5858 8 месяцев назад +2

    ❤❤❤ Mind-blowing lecture Awesome

  • @hariharansrinivasan9493
    @hariharansrinivasan9493 Месяц назад +2

    Hi bara,lessons are really good but not able to download/see the notes that which you have been used in this advance sql chapter..
    In noted section download it redirects to Microsoft server sql page not able to refer the notes,pls upload the advance sql topic notes

    • @DataWithBaraa
      @DataWithBaraa  Месяц назад +1

      I'll fix it

    • @hariharansrinivasan9493
      @hariharansrinivasan9493 Месяц назад

      @DataWithBaraa thanks for the reply bara!
      It would be really helpful for us once the advance SQL notes is available as soon as possible,thanks

  • @mohammadthousif7439
    @mohammadthousif7439 5 месяцев назад +1

    At 54:08 i think the aggregation for the last row should be 115

  • @sunpreetsingh5143
    @sunpreetsingh5143 Месяц назад +1

    Bara YOU ARE AMAZING :)..u make it extreamly easy to understand..

    • @DataWithBaraa
      @DataWithBaraa  Месяц назад +1

      You are more amazing for leaving this kind comment 😊

  • @AhmedRehan01
    @AhmedRehan01 7 месяцев назад +1

    Thanks Baraa for these amazing lectures. Can you please provide the recommended order for watching these videos?

    • @DataWithBaraa
      @DataWithBaraa  7 месяцев назад +1

      Yes please follow the playlist :) ruclips.net/video/ELdz0dXzWGM/видео.html

    • @AhmedRehan01
      @AhmedRehan01 7 месяцев назад +1

      @@DataWithBaraa thank you

  • @ransfordsaddicamoleka2924
    @ransfordsaddicamoleka2924 5 месяцев назад +1

    Finally, ....thanks very much Sir

  • @Toyahan43
    @Toyahan43 3 месяца назад +1

    Another awesome tutorial! Can you please tell me how I can access the presentation notes for this?

  • @gopikrishnasistla8896
    @gopikrishnasistla8896 8 месяцев назад +2

    Hi sir
    Is Running avg and moving avg Both are same or not .
    Sir why advance sql classes going on sql server and not used in mysql
    Thank you sir

  • @rezanurkabir70
    @rezanurkabir70 4 месяца назад +1

    Best and precise. Make a course about postgreSQL 😍👍

  • @CuocSongQuanhTa204
    @CuocSongQuanhTa204 8 месяцев назад +1

    Hi Baraa. I really your white board presentation. May I ask what that software do you use? Thanks in advance!

  • @GuyOrlov
    @GuyOrlov 23 дня назад

    on 46:10 there is an error spell, should be 'historical' no 'hisotrical' paterrns. but great video I needed this.

  • @donyelldf
    @donyelldf 8 месяцев назад +1

    Great video and explanation, thank you

  • @azaansfunworld4300
    @azaansfunworld4300 7 месяцев назад +1

    I am your fan for the way you explain :)

    • @DataWithBaraa
      @DataWithBaraa  7 месяцев назад

      Ah you like it? Very happy to hear that

  • @asrithagudla4865
    @asrithagudla4865 3 месяца назад

    hy hi can i know why are we writing t in sudquery at 42:44

  • @arianeteixeira9144
    @arianeteixeira9144 8 месяцев назад +1

    Thank you very much for this amazing class.

  • @nethrakr
    @nethrakr 2 месяца назад +1

    Hi, why do we add 't' while writing a subquery with WHERE clause, what is this 't'?

    • @yashkamath9969
      @yashkamath9969 9 дней назад

      t is an Alias, since we need to name any derived tables

  • @nitinrawat-g6t
    @nitinrawat-g6t 4 месяца назад

    YOUR CHANNEL IS GEM ! BUT REALLY UNDERRATED

  • @udaymehta8917
    @udaymehta8917 25 дней назад +1

    Thank you very much sir for your LOVE towards free & open & quality education.
    Nowadays,
    I watch & practice your SQL Advanced videos to fulfill my day. Your video made my day. I' very happy today, because of your hard work.
    Also, I'm going for Interview today and this video is acting like Cnfidence booster for me.
    Also, kindly share your India Travel experience.
    If you're still in India, is it possible to meet with you sir?

    • @DataWithBaraa
      @DataWithBaraa  23 дня назад

      Thank you so much for your kind words! Best of luck with your interview-you’ll do great! 🙌 My India trip was amazing-such a vibrant and inspiring place. I’m not there anymore, but I’d love to visit again!

  • @lakshmie3203
    @lakshmie3203 8 месяцев назад +1

    Hi Baraa... How are you doing???? A very big thanks to you for this SQL class video and other classes... excellent detailed explanation ...thanks alot Baraa..

  • @micaelzekarias1537
    @micaelzekarias1537 7 месяцев назад +1

    So fantastic thanks.

  • @Ascendify5
    @Ascendify5 8 месяцев назад +1

    Thank you for making me data hungry😋 waiting for your next class master let's go🎉

  • @aditipanwar4568
    @aditipanwar4568 Месяц назад +1

    Too good!

  • @DivyYadav-hg2js
    @DivyYadav-hg2js 2 месяца назад +1

    leave a like for this gem teacher

  • @rakibulhaque3444
    @rakibulhaque3444 3 месяца назад +1

    Thanks

  • @asrithagudla4865
    @asrithagudla4865 3 месяца назад +1

    thank you

  • @tejaskhairnar620
    @tejaskhairnar620 2 месяца назад

    Thank you sir for these amazing tutorials. plz share the presentation mention in that tutorials

  • @tnarijit6062
    @tnarijit6062 3 месяца назад

    Where I get the table u used?

  • @ak3965-l8q
    @ak3965-l8q День назад +1

    is pdf available ??

  • @SaidurRahman-c8w
    @SaidurRahman-c8w 4 месяца назад +1

    sir, can u please provide these sketch notes, they're not available on the website.

  • @jezdel6298
    @jezdel6298 2 месяца назад +1

    I tried restoring database for your SalesDB.bak file from your link but it keeps failing.

    • @DataWithBaraa
      @DataWithBaraa  2 месяца назад

      What error are you getting

    • @jezdel6298
      @jezdel6298 2 месяца назад

      @@DataWithBaraa Execution Error : Restore of database 'SalesDB' failed.

  • @AmitYadav-vb5bs
    @AmitYadav-vb5bs 8 месяцев назад +1

    Sir, Could you please make an industry-level project related to SQL

  • @tumelomohale9766
    @tumelomohale9766 2 месяца назад

    Hi Baraa, is this MySQL or PostgreSQL? If MySQL, how much of this is transferrable (as it is) to PoastgreSQL?

  • @arnavsharma2485
    @arnavsharma2485 4 месяца назад

    please put videos for pyspark as well and if possible for R also

  • @SaadiaZahoor
    @SaadiaZahoor 4 месяца назад +1

    Thnx brother

  • @QPOSTB1
    @QPOSTB1 Месяц назад +1

    hi teacher i have a question
    can i use max and min with name ?

  • @alzhrthy
    @alzhrthy Месяц назад +1

    damn if i could like this more than once

  • @DivyYadav-hg2js
    @DivyYadav-hg2js 2 месяца назад +1

    bara i urge u to get data science projects tooo plz