Advanced Aggregate Functions in SQL (GROUP BY, HAVING vs. WHERE)

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

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

  • @talalbow
    @talalbow 3 года назад +311

    You taught me in 6 minutes what my university class failed to teach me in 2 weeks lol
    Subscribed ❤️

    • @lauraaparicio3076
      @lauraaparicio3076 3 года назад +16

      Or even years, online education is amazing, the future of universities is a political issue but most of education should move to the digital environment in my opinion of course, I’m from Mexico y went to the university but i am updating my stack with platzi, the biggest platform to learn digital stuff, marketing, dev, data science, in Spanish is like udemy but even better and i love it

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

      3 minutes in 2X speed

    • @andrematos3353
      @andrematos3353 3 года назад

      Same for me

    • @karlwhitford7523
      @karlwhitford7523 3 года назад +1

      Well you know what an unsigned byte address looks like after packing.

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

      @@lauraaparicio3076 I agree with you!

  • @gustavshochat7792
    @gustavshochat7792 4 года назад +135

    Thanks for clarifying that WHERE cannot be used on aggregations. This is exactly what I was looking for regarding WHERE vs. HAVING. Not sure why I haven't seen this mentioned elsewhere, subscribed!

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

      Was looking for the same

    • @pharaoh9483
      @pharaoh9483 10 месяцев назад

      I dont get why it cant be used, in their documentatoin they also say u cant use them, but then they go on to provide examples like
      SELECT city, count(*) FILTER (WHERE temp_lo < 45), max(temp_lo)
      FROM weather
      GROUP BY city; which are combing both

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

      ​@@markkoech289ditto 😊

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

    for two years I've been struggling to understand how and when to use these clauses and you just taught me all that in 6 minutes. You are a legend. Thank you. It is going to save me from a lot of trouble from my Uni exam next week

  • @rungxanh2901
    @rungxanh2901 3 года назад +7

    A 6-minute watch saves me from a lengthy 2-hour lecture, not to mention the lecture didn't even serve its purpose of teaching us in such intuitive explanation ❤️

  • @nizarsaidi1903
    @nizarsaidi1903 26 дней назад +1

    Brief and clear ! My Database teacher failed to explain this clause for 2 years

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

    This is SOOO much clearer than what my instructor teaches at NAIT. Excellent tutorials.

  • @eecolme
    @eecolme 3 года назад +8

    I'm so happy to finally found someone able to explain HAVING so easily. Thank you so much man

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

    Oh my gosh! You answered the question that was stumping me the last few days. I’m taking the google analytics course and I keep having errors with my aggregate functions. When you added city to the SELECT clause, I keep doing that with the data set I’m working on and keep getting an error message. Then I saw you added country and city under GROUP BY which I have never done before so I think your video was the answer to my question. Thank you!!!

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

    Just subscribed. If you ever get tired of BEING a data scientist, you should definitely go into teaching. You've got a knack for making complex things simple.

  • @Mori-Chan613
    @Mori-Chan613 Год назад +6

    This is easier to understand than what my online mentor taught me. Thank you!

  • @mostinho7
    @mostinho7 3 года назад +2

    Done thanks
    Where clause filter is applied before aggregation, then the aggregate function is applied on the rows returned by the where clause filter. If you want to filter on the rows returned by the aggregate function itself, you have to use having clause. Having count(*) > n

  • @VishalPatel-ly9uq
    @VishalPatel-ly9uq 3 года назад +8

    You are a legend, this guy saved my life In university. :D

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

    i love how this guy in 6 minutes managed to explain GROUP BY and HAVING whilst i've been struggling with them for the whole semester

  • @hankbreckenridge5680
    @hankbreckenridge5680 4 года назад +36

    These are amazing tutorials. Keep up the great work!

  • @mohammadaminghasemi9894
    @mohammadaminghasemi9894 24 дня назад +1

    dud that was fast and so much useful
    i don't usually comment any thing but it was really great!
    thank you❤

  • @majeyork
    @majeyork 3 года назад +2

    Thank you, I've spent a week trying to make it all make sense.
    You've just done that!

  • @marcostevanella6051
    @marcostevanella6051 3 года назад +1

    Am I another guy saying what all of the previous have said? This 7 min video explains what a college course does in weeks. Then, they say you need to go to college for earning an understanding of such. I rest my case while I subscribe lol. Thank you

  • @colevarney8990
    @colevarney8990 4 года назад +11

    This was very helpful!! Cleared up a lot of confusion I am having in my undergrad database class. Clutch for my exam tomorrow! :)

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

    I was lost reading through Microsoft SQL pages on HAVING vs WHERE, but with this video I got it right away😀 Thank you ❤

  • @SD-vj9rr
    @SD-vj9rr 2 года назад +2

    Finally understanding how GROUP BY & HAVING work, this was definitely helpful.

  • @mskafridi4815
    @mskafridi4815 3 года назад +1

    Straight to the point without any BS.. You are my hero

  • @1800bth
    @1800bth Год назад

    Thank you for your concise delivery. Not too slow nor fast.

  • @xternal2072
    @xternal2072 4 года назад +1

    great instructions man. I'm you can explain in great details in English I can fully understand cause a bunch of the tutorials I find is mostly from people in India and I just can't understand some the words they are saying. GREAT LESSONS AND VIDEOS IN DETAIL! GREAT INSTRUCTOR. Remember it takes 3 to 10 years to become a overnight success.

  • @COOKINGBIRD
    @COOKINGBIRD Год назад +2

    Your SQL video was exactly what I needed. Thank you for explaining it so clearly. 😄🎬💻🔍

  • @sarahemslie6105
    @sarahemslie6105 4 года назад +4

    Thank you Nathan. So nicely explained in such a seemingly effortless way! Please keep up the great work as you might just keep me sane.

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

    Thanks sir, it just take me 6 mins to watch but it's completely comprehensive. Amazing turorials, thanks for clarifying my confusion.

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

    Videos like this are why I love the internet.

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

    I've been struggling with a problem like this all day. Thank you!

  • @roymcpherson1639
    @roymcpherson1639 3 года назад

    This answered all my questions while doing the google data analytics certificate. Thanks for taking the time to do this.

  • @McCallumClips
    @McCallumClips 3 года назад +1

    Nice job. Thanks! Very useful and to the point. None of the stupid music or crazy intros!

  • @XenogearsPS
    @XenogearsPS 3 года назад +1

    I like how fast you go. These text books and courses go slow, use too many examples and confuse the heck out of you. Simple and to the point. Thanks.

  • @md.anisurrahman1723
    @md.anisurrahman1723 3 года назад

    You teach like an real expert.

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

    Thank you making such a great informational, informative, simplified video to teach us individuals who are willing to learn all of these topics discussed.

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

    One of the best video outhere. It really helped me out to understand what's the use of GROUP BY
    THANK YOU

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

    Thanks! Very useful how to use Having instead of 'where' , helped me count a column then use a condition to check the count greater then a value.

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

    The clarity here is amazing

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

    learning relational database in university, this video helped a lot. thanks man!

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

    That was the most helpful explanation. I kept having the trouble of understanding when and how to use these two.

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

    Great job Nathan so explicit

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

    Great tutorial (Revisiting) 😊🎉⭐️⭐️⭐️⭐️⭐️

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

    Oh my god, you helped me so much I spent all day on this and you helped me more than the damn instructor did. Thank you so much.

  • @faiqahaider8296
    @faiqahaider8296 3 года назад +1

    Thank you so MUCH! I just loved the way you explained everything in this short video it helped me to understand very well. Please keep making short videos!

  • @mahfuzarrahman8897
    @mahfuzarrahman8897 3 года назад +1

    it is a 100% useful and effective tutorial. I really thank you so much.

  • @AbdullahAdetula
    @AbdullahAdetula День назад

    That was totally explanatory, i appreciate it boss

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

    You helped me a lot, i had a lot of issue with having and group by. Thank you

  • @Sharry-M
    @Sharry-M 9 месяцев назад

    Man I love your content! you're a savior! thanks for the educational videos!!

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

    Many thanks for this very short and crisp information. Thank you!!

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

    Thank you! You made it so easy to understand. Much appreciated

  • @OfisLab
    @OfisLab 3 года назад

    thank man, this really helped clarify these concepts

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

    Thank you so much. This is the video I was looking for! 🙌

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

    This is a life savior!! Thank you THANK YOU!!!!!

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

    Good Video, explained it very well, I was stuck with the silliest problem and because of the way you explained it I sorted the issue! Top Video my friend!

  • @sarahfinley6606
    @sarahfinley6606 3 года назад

    Thank you for sorting this out so clearly!

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

    Thanks.. Clear the confusion of grouping

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

    You're the best. Much love from Miami U.

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

    Very concise and clear! Thank you so much

  • @spatialnasir
    @spatialnasir 3 года назад

    I love the tempo of this video. Thanks.

  • @tomaspajonk8354
    @tomaspajonk8354 3 года назад

    Man your explanation is amazing. Ill check all of your's videos. Thank you a lot

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

    My professors are dumb as shit. You made this simple! Thanks

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

    Thanks! Very helpful for my interview preparation recap.

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

    Second video of yours I watch. You have such a great way of explaining things! Subscribed

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

    Very Helpful i was looking for how to display multiple column by using group by .. thanks ,
    from Saudi Arabia

  • @topazdazzlesDA
    @topazdazzlesDA 3 года назад

    Super simple, easy to follow! Thank you for uploading!

  • @ygp47
    @ygp47 10 месяцев назад

    Such a simple and powerful explanation video

  • @vivvpprof
    @vivvpprof 3 года назад

    I'm having an exam today, thanks for the wishes for a good day - it will be good :D

  • @dmoneyballa
    @dmoneyballa 4 года назад

    this was really helpful watched this after getting a hacker rank question where I had to stack overflow too much.

  • @maceb87
    @maceb87 3 года назад

    Best example i found so far, thank you!

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

    it helped alot thank you for short and clear explnation

  • @Valivalia777
    @Valivalia777 3 года назад +1

    Thanks for the video and your examples, you can really explain it in simple words, nice work :)))))

  • @aasiralikhan7205
    @aasiralikhan7205 3 года назад

    Very easily explained! Big thanks!!

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

    Thank you for the great explanation! This was very helpful! Liked and subscribed!

  • @kadekhendradarmasastrawan7694
    @kadekhendradarmasastrawan7694 11 месяцев назад

    Just found this video and it's really helpful

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

    This was incredibly helpful. Thank you!

  • @originalkaylah
    @originalkaylah 10 месяцев назад

    im so happy I found this video!!😆

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

    Clear and concise! Great and very informative videos!

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

    Excellent explanation!!

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

    Superb video. Straight to the point and very concise 👍🏾

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

    Thank you for the quick tutorial!

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

    Very helpful, you are a great teacher!!

  • @christianyaksic3555
    @christianyaksic3555 3 года назад

    It couldn't be clearer. Thank you!

  • @Italjamer
    @Italjamer 3 года назад

    You are a lifesaver! Thank you!

  • @MariamOnTheRun
    @MariamOnTheRun 4 года назад +1

    great & simple explanations- thank you!

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

    I learned everything I needed to know !

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

    You are an amazing teacher

  • @bubblebath2892
    @bubblebath2892 11 месяцев назад

    Brilliant vid man , thnaks a ton

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

    Thank you so much! I have my exam tomorrow and was always confused about when i can use what. No one could explain it to me and it took you 5 minutes lol your‘re a life saver

  • @TheFranzKranz
    @TheFranzKranz 3 года назад

    Thx it really helped me understand the HAVING and WHERE Statement

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

    This is the fastest way i learned the diff between Group by and having

  • @veezyp
    @veezyp 4 года назад

    Best explanation I have come across. Thanks

  • @Mona-gh3mh
    @Mona-gh3mh 2 года назад

    Your video is great! Helps me a lot!!!

  • @SuperKiingg
    @SuperKiingg 3 года назад

    great job very straight and clear tutorial, thank you

  • @beatricebass9245
    @beatricebass9245 3 года назад

    Great video! Very helpful and made a ton of sense! Thanks!!

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

    Simple and concise. Thank you so much

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

    ... thanks man, you just made my life easier 👌

  • @azizas9366
    @azizas9366 4 года назад

    Now it is clear. Thanks for posting this video.

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

    I wouldn't say this is that advanced but accurate and useful for sure

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

    Thank you so much! Very helpful :)

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

    Thank you, well explained! Subscribed!

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

    Thank you! This was great help!!!

  • @quatre3743
    @quatre3743 3 года назад

    Saved my day at bootcamp sprint :D thanks