Master the SQL SELECT statement part 06: Aggregate Functions, GROUP BY and HAVING clauses

Поделиться
HTML-код
  • Опубликовано: 19 июн 2024
  • This video is part of a multi-part series on mastering the SQL SELECT statement. The SELECT statement, the most often used SQL command, is easy to learn yet difficult to master. Follow along with me and level up your database query super powers!
    This video covers the Aggregate Functions, GROUP BY, and HAVING clauses, specifically
    - Counting rows, values in columns, and unique values in columns
    - Getting sums, minimum, maximum, and averages.
    - NULL handling of the aggregate functions.
    - The purpose of GROUP BY
    - Understanding why columns in the projection (SELECT line) must be in the GROUP BY when an aggregate it used.
    - Using the HAVING clause to filter rows after the GROUP BY operation.
    - Differences between HAVING and WHERE
    The SQL code is available here: github.com/mafudge/learn-data...
    If you need to setup your own database environment, check out learn-databases! The easy way to get going and follow along with these videos. • Learn Databases Walkth...
    This video is part of the textbook Applied Database Management applieddb.com
    Here's the entire playlist: • Applied Database Manag...

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

  • @CuratedTikToks
    @CuratedTikToks 2 года назад +28

    Based on COUNT(views), I will say your video is very underrated.

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

    After watching over 10 videos, this video is by far the best explaining Group By. Thanks 🙏

  • @mollycuka6525
    @mollycuka6525 2 года назад +4

    This is is the best video I have watched on GROUP BY. Sharing with my DBMS class :)

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

    Crystal clear, thanks 🏅

  • @dejasbeautyxoxo1361
    @dejasbeautyxoxo1361 2 года назад +2

    Thank you this has been BEYOND helpful. Im so happy to have found and instructor that actually explains WHY a certain action/step needs to happen in the format it does and not just the HOW. Seeing the visual of the table really helps with the comprehension.

  • @vinitpatidar5617
    @vinitpatidar5617 Год назад

    Most energetic tutor I ever came across on YT. Thanks for sharing knowledge.

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

    this was awesome, i was spinning in circles trying to grasp group by w/ having and this video really helped!

  • @jonasasare5775
    @jonasasare5775 3 года назад +4

    I can't thank you enough, this was supper helpful
    Thank you

  • @SagarKumar-db2xy
    @SagarKumar-db2xy 2 года назад +4

    Wow quality content. But hardly 500 views. Subbed you.

    • @michaelfudge
      @michaelfudge  2 года назад +1

      Thank you. It takes a while to get noticed!

  • @marvinjohn237
    @marvinjohn237 Год назад +1

    Woah I finished a 30min video tutorial! Thanks man, this is really helpful and interesting.

  • @tejarojnikmaher6941
    @tejarojnikmaher6941 2 года назад +1

    Such a good explanation! Thank you.

  • @mateusmatteigarcia6616
    @mateusmatteigarcia6616 Год назад

    thanks Michael!

  • @pulseandtap2238
    @pulseandtap2238 Год назад

    This was incredibly helpful! Thank you so much!!!

  • @Tinypeanut493
    @Tinypeanut493 Год назад

    This was a fantastic video. I learned a ton! Thank you.

  • @TeensAgainstDUI
    @TeensAgainstDUI 2 года назад

    Extremely helpful! You’re a legend

  • @mymusicytmsc9957
    @mymusicytmsc9957 Год назад +1

    I'm start to learn mysql and you help me a lot. Was wondering about count row vs count column and you have explained them very clear. Thank you.

  • @eaglelion9005
    @eaglelion9005 Год назад

    Great explaination! This helped me a lot! Thanks

  • @malwalsabino519
    @malwalsabino519 Год назад

    Thanks alot..this is clear and for the first time, I clearly understand basics of sql aggregations and having clause

  • @investingduz8583
    @investingduz8583 2 года назад

    amazing videos, thank you so much

  • @karnabudhathoki5311
    @karnabudhathoki5311 2 года назад

    Thank you for sharing ur knowledge..From..🇳🇵..Nepal

  • @suhaspatwa
    @suhaspatwa Год назад

    🎉 Very informative video, learned a lot, thanks

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

    Thanks!

  • @ursmuller5545
    @ursmuller5545 2 года назад

    Thanks this are great.

  • @orienslayer7272
    @orienslayer7272 Год назад

    loved it

  • @duydong78
    @duydong78 Год назад

    Great video! I've seen and used things like count and group by but never understood how they really work. The examples in this video are practical and well explained! The pace was perfect. I felt like I was continuously building knowledge throughout every part of the video.

    • @michaelfudge
      @michaelfudge  Год назад

      I am happy I was able to help you out!

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

    Cela fait des jours que je cherche un tutoriel pour comprendre cette partie et j'ai tout compris ici. Merci

  • @gotchihaeyo1825
    @gotchihaeyo1825 2 года назад

    I like the look on your face @2:10 lol
    Thank you for the video!!

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

    Where can I get the database to practice with you?

  • @pawelc8756
    @pawelc8756 2 года назад

    👍👍👍👍

  • @kevinbyrnes2385
    @kevinbyrnes2385 Год назад

    How do I sum alias column?

  • @passportbro904
    @passportbro904 5 дней назад

    I wish you guys would use dark mode and zoom in so we can see what ur writing 🙄 as soon as i see a white screen with the font a thousand miles away from my eyes, i click off, but this time i wanted to leave a comment cause it keeps pi$$ing me off