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

  Рет қаралды 231,139

Becoming a Data Scientist

Becoming a Data Scientist

4 жыл бұрын

In this step-by-step video tutorial, you will learn some more advanced SQL aggregation concepts by using the GROUP BY, HAVING, and WHERE clauses!
Learn about the BASIC aggregation Functions: • Basic Aggregate Functi...
Queries:
1) Pull aggregate information with the GROUP BY clause: SELECT column1, column2, COUNT(column3) FROM table GROUP BY column1, column2
2) Use the HAVING clause to filter your aggregation: SELECT column1, COUNT(column2) FROM table GROUP BY column1 HAVING COUNT(column2) = 5
3) Use WHERE and HAVING clauses in the same query: SELECT column1, COUNT(column2) FROM table WHERE column1 = 3 GROUP BY column1 HAVING COUNT(column2) = 5
Get the Northwind Database: • How to Load a Sample P...
Support the Channel:
1) Subscribe: www.becomingads.com/o/youtube
2) DataCamp:
3) Udacity:

Пікірлер: 256
@talalbow
@talalbow 3 жыл бұрын
You taught me in 6 minutes what my university class failed to teach me in 2 weeks lol Subscribed ❤️
@lauraaparicio3076
@lauraaparicio3076 3 жыл бұрын
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 2 жыл бұрын
3 minutes in 2X speed
@andrematos3353
@andrematos3353 2 жыл бұрын
Same for me
@karlwhitford7523
@karlwhitford7523 2 жыл бұрын
Well you know what an unsigned byte address looks like after packing.
@hannahmeng4497
@hannahmeng4497 2 жыл бұрын
@@lauraaparicio3076 I agree with you!
@gustavshochat7792
@gustavshochat7792 3 жыл бұрын
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 Жыл бұрын
Was looking for the same
@pharaoh9483
@pharaoh9483 5 ай бұрын
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
@focusgratitude9724
@focusgratitude9724 2 ай бұрын
​@@markkoech289ditto 😊
@eecolme
@eecolme 2 жыл бұрын
I'm so happy to finally found someone able to explain HAVING so easily. Thank you so much man
@hankbreckenridge5680
@hankbreckenridge5680 4 жыл бұрын
These are amazing tutorials. Keep up the great work!
@sarahemslie6105
@sarahemslie6105 3 жыл бұрын
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.
@MadFunnyfails
@MadFunnyfails Ай бұрын
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
@VishalPatel-ly9uq
@VishalPatel-ly9uq 3 жыл бұрын
You are a legend, this guy saved my life In university. :D
@Mori-Chan613
@Mori-Chan613 Жыл бұрын
This is easier to understand than what my online mentor taught me. Thank you!
@goinggoinggone535
@goinggoinggone535 3 жыл бұрын
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.
@majeyork
@majeyork 2 жыл бұрын
Thank you, I've spent a week trying to make it all make sense. You've just done that!
@ras2930
@ras2930 21 сағат бұрын
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!!!
@1800bth
@1800bth Жыл бұрын
Thank you for your concise delivery. Not too slow nor fast.
@SD-vj9rr
@SD-vj9rr 2 жыл бұрын
Finally understanding how GROUP BY & HAVING work, this was definitely helpful.
@rungxanh2901
@rungxanh2901 2 жыл бұрын
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 ❤️
@colevarney8990
@colevarney8990 3 жыл бұрын
This was very helpful!! Cleared up a lot of confusion I am having in my undergrad database class. Clutch for my exam tomorrow! :)
@topazdazzlesDA
@topazdazzlesDA 2 жыл бұрын
Super simple, easy to follow! Thank you for uploading!
@sarahfinley6606
@sarahfinley6606 2 жыл бұрын
Thank you for sorting this out so clearly!
@groundbreakingdig
@groundbreakingdig 2 ай бұрын
This is SOOO much clearer than what my instructor teaches at NAIT. Excellent tutorials.
@mskafridi4815
@mskafridi4815 3 жыл бұрын
Straight to the point without any BS.. You are my hero
@faiqahaider8296
@faiqahaider8296 3 жыл бұрын
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!
@COOKINGBIRD
@COOKINGBIRD 11 ай бұрын
Your SQL video was exactly what I needed. Thank you for explaining it so clearly. 😄🎬💻🔍
@tosinoloruntoba449
@tosinoloruntoba449 Жыл бұрын
Great job Nathan so explicit
@mrreese2342
@mrreese2342 7 ай бұрын
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
@lilygranger6264
@lilygranger6264 Жыл бұрын
This is a life savior!! Thank you THANK YOU!!!!!
@nicoborromeo1150
@nicoborromeo1150 Ай бұрын
Very concise and clear! Thank you so much
@McCallumClips
@McCallumClips 3 жыл бұрын
Nice job. Thanks! Very useful and to the point. None of the stupid music or crazy intros!
@alokjha780
@alokjha780 10 ай бұрын
Many thanks for this very short and crisp information. Thank you!!
@GreenSlugg
@GreenSlugg 2 жыл бұрын
I've been struggling with a problem like this all day. Thank you!
@liamquiros
@liamquiros 3 ай бұрын
Thank you so much. This is the video I was looking for! 🙌
@KozaiDesign
@KozaiDesign Жыл бұрын
That was the most helpful explanation. I kept having the trouble of understanding when and how to use these two.
@maceb87
@maceb87 3 жыл бұрын
Best example i found so far, thank you!
@Sharry-M
@Sharry-M 4 ай бұрын
Man I love your content! you're a savior! thanks for the educational videos!!
@ariannagold4599
@ariannagold4599 Жыл бұрын
You're the best. Much love from Miami U.
@user-vf4pz1jw3u
@user-vf4pz1jw3u Жыл бұрын
Thank you! You made it so easy to understand. Much appreciated
@alexrollins8356
@alexrollins8356 Жыл бұрын
Thank you for the quick tutorial!
@MariamOnTheRun
@MariamOnTheRun 3 жыл бұрын
great & simple explanations- thank you!
@dumzi
@dumzi 11 ай бұрын
The clarity here is amazing
@md.anisurrahman1723
@md.anisurrahman1723 2 жыл бұрын
You teach like an real expert.
@estebandiaz1306
@estebandiaz1306 2 жыл бұрын
Second video of yours I watch. You have such a great way of explaining things! Subscribed
@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.
@Italjamer
@Italjamer 2 жыл бұрын
You are a lifesaver! Thank you!
@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
@beatricebass9245
@beatricebass9245 3 жыл бұрын
Great video! Very helpful and made a ton of sense! Thanks!!
@aasiralikhan7205
@aasiralikhan7205 2 жыл бұрын
Very easily explained! Big thanks!!
@veezyp
@veezyp 4 жыл бұрын
Best explanation I have come across. Thanks
@ikeben400
@ikeben400 2 жыл бұрын
Superb video. Straight to the point and very concise 👍🏾
@neptune7153
@neptune7153 Ай бұрын
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
@ericakillz2052
@ericakillz2052 3 ай бұрын
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.
@roymcpherson1639
@roymcpherson1639 2 жыл бұрын
This answered all my questions while doing the google data analytics certificate. Thanks for taking the time to do this.
@MrSkaterview
@MrSkaterview 2 жыл бұрын
Simple and concise. Thank you so much
@ashleyhouseknecht4042
@ashleyhouseknecht4042 Жыл бұрын
This was incredibly helpful. Thank you!
@tomaspajonk8354
@tomaspajonk8354 3 жыл бұрын
Man your explanation is amazing. Ill check all of your's videos. Thank you a lot
@geoafrikana
@geoafrikana 2 жыл бұрын
I love the tempo of this video. Thanks.
@JoonJulyAugust
@JoonJulyAugust Жыл бұрын
learning relational database in university, this video helped a lot. thanks man!
@danielangelov5948
@danielangelov5948 9 ай бұрын
You helped me a lot, i had a lot of issue with having and group by. Thank you
@michealangelodelacruz7740
@michealangelodelacruz7740 8 ай бұрын
Clear and concise! Great and very informative videos!
@v1tal_c
@v1tal_c Жыл бұрын
Thanks! Very helpful for my interview preparation recap.
@Mona-gh3mh
@Mona-gh3mh 2 жыл бұрын
Your video is great! Helps me a lot!!!
@azizas9366
@azizas9366 3 жыл бұрын
Now it is clear. Thanks for posting this video.
@enriqueperez4082
@enriqueperez4082 2 жыл бұрын
Thank you! This was great help!!!
@SuperKiingg
@SuperKiingg 2 жыл бұрын
great job very straight and clear tutorial, thank you
@johnbarratt2042
@johnbarratt2042 Жыл бұрын
FANTASTIC! Thank you!!!!
@elderaarondavis1
@elderaarondavis1 11 ай бұрын
I was lost reading through Microsoft SQL pages on HAVING vs WHERE, but with this video I got it right away😀 Thank you ❤
@OfisLab
@OfisLab 2 жыл бұрын
thank man, this really helped clarify these concepts
@christianyaksic3555
@christianyaksic3555 3 жыл бұрын
It couldn't be clearer. Thank you!
@user-iz2kv6xq5n
@user-iz2kv6xq5n 10 ай бұрын
Very helpful, you are a great teacher!!
@mahfuzarrahman8897
@mahfuzarrahman8897 2 жыл бұрын
it is a 100% useful and effective tutorial. I really thank you so much.
@moviemagg3096
@moviemagg3096 7 ай бұрын
Thank you, well explained! Subscribed!
@simmyjer
@simmyjer Жыл бұрын
Very helpful. Thank you!
@bevedel
@bevedel Жыл бұрын
short and helpful. Thank you.
@ygp47
@ygp47 5 ай бұрын
Such a simple and powerful explanation video
@user-ff3co9pb8k
@user-ff3co9pb8k 23 күн бұрын
clear and easy to understand !
@dblacwell
@dblacwell 2 жыл бұрын
I learned everything I needed to know !
@marwaawad3677
@marwaawad3677 Ай бұрын
it helped alot thank you for short and clear explnation
@kadekhendradarmasastrawan7694
@kadekhendradarmasastrawan7694 6 ай бұрын
Just found this video and it's really helpful
@Misfittykitty
@Misfittykitty Жыл бұрын
Thank you so much you are a GREAT teacher! :)
@migelvandevoorde9593
@migelvandevoorde9593 3 жыл бұрын
This was really helpful, thank you!!!!
@jettecantoria
@jettecantoria Жыл бұрын
Thank you. This is so helpful.
@bubblebath2892
@bubblebath2892 6 ай бұрын
Brilliant vid man , thnaks a ton
@ivankljun2542
@ivankljun2542 3 жыл бұрын
Great explanation, thanks!
@evcaliz
@evcaliz 2 жыл бұрын
You are an amazing teacher
@originalkaylah
@originalkaylah 5 ай бұрын
im so happy I found this video!!😆
@karlkarnu7641
@karlkarnu7641 Жыл бұрын
Great video, thanks!
@shakrazj
@shakrazj 2 жыл бұрын
What a great video. Subscribed!
@saifulislam-qf8xj
@saifulislam-qf8xj 3 жыл бұрын
THANK YOU!! I sorted easily
@Runa_Nura
@Runa_Nura Жыл бұрын
nice content, easy to understand. THX
@tanveerulhaq6511
@tanveerulhaq6511 3 жыл бұрын
Great explanation. Thank you so much...
@scottgaines2677
@scottgaines2677 Жыл бұрын
Thank you for the great explanation! This was very helpful! Liked and subscribed!
@ugonnac8937
@ugonnac8937 2 жыл бұрын
This was very helpful and well explained. Thanks
@JC-ej1xi
@JC-ej1xi 8 ай бұрын
This is super helpful. Thank you.
@juliakristavilladiego4425
@juliakristavilladiego4425 3 жыл бұрын
Thank you so much. Really helpful!
@hannahmeng4497
@hannahmeng4497 2 жыл бұрын
This video is amazing!
@camilopinzon5957
@camilopinzon5957 3 жыл бұрын
Great Job, thanks for sharing Knowledge.
@skylerreeves
@skylerreeves Жыл бұрын
Videos like this are why I love the internet.
@Lance-rg9en
@Lance-rg9en 3 жыл бұрын
Great video. Keep up the great work!
@thulanidendere3986
@thulanidendere3986 2 жыл бұрын
... thanks man, you just made my life easier 👌
@kushagraahire1871
@kushagraahire1871 Жыл бұрын
Great Explanation
@Valivalia777
@Valivalia777 3 жыл бұрын
Thanks for the video and your examples, you can really explain it in simple words, nice work :)))))
@samuelrodrigues2939
@samuelrodrigues2939 2 жыл бұрын
thanks a lot man.. that was really helpful
@gspolima
@gspolima 2 жыл бұрын
you. are. the. guy. thank you!
SQL String Functions Tutorial (LEFT, RIGHT, POSITION, CONCAT, LOWER, REPLACE)
12:29
Becoming a Data Scientist
Рет қаралды 37 М.
How to do Subqueries in SQL with Examples
8:20
Becoming a Data Scientist
Рет қаралды 162 М.
Omega Boy Past 3 #funny #viral #comedy
00:22
CRAZY GREAPA
Рет қаралды 37 МЛН
Basic Aggregate Functions in SQL (COUNT, SUM, AVG, MAX, and MIN)
5:44
Becoming a Data Scientist
Рет қаралды 81 М.
Learn GROUP BY vs PARTITION BY in SQL
14:03
Anthony Smoak
Рет қаралды 32 М.
6 SQL Joins you MUST know! (Animated + Practice)
9:47
Anton Putra
Рет қаралды 103 М.
SQL Index |¦| Indexes in SQL |¦| Database Index
9:57
Socratica
Рет қаралды 606 М.
Learn SQL In 60 Minutes
56:24
Web Dev Simplified
Рет қаралды 2 МЛН
Stop using COUNT(id) to count rows
7:01
PlanetScale
Рет қаралды 372 М.
How to Filter with the WHERE clause in SQL
11:14
Becoming a Data Scientist
Рет қаралды 32 М.
WWDC 2024 Recap: Is Apple Intelligence Legit?
18:23
Marques Brownlee
Рет қаралды 5 МЛН
TOP-18 ФИШЕК iOS 18
17:09
Wylsacom
Рет қаралды 675 М.
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30