The Difference Between WHERE and HAVING | WHERE vs. HAVING in SQL

  Рет қаралды 2,196

Frederik Müller

Frederik Müller

Жыл бұрын

Explaining the theoretical and practical difference between the SQL keywords WHERE and HAVING. Let me know whether you want me to go through more SQL keywords and concepts such as window functions, date manipulations etc.
Find me on LinkedIn: / frederikmueller
LeetCode 596:
• LeetCode 596: Classes ...
leetcode.com/problems/classes...
StrataScratch 10315:
• Real SQL Interview Que...
platform.stratascratch.com/co...
Alex the Analyst video:
• Intermediate SQL Tutor...
w3schools and Microsoft resources:
www.w3schools.com/sql/sql_hav...
learn.microsoft.com/en-us/sql...
Playlists:
StrataScratch SQL Coding Questions: • StrataScratch Coding Q...
LeetCode database SQL problems: • LeetCode Database Prob...
LeetCode easy SQL problems: • LeetCode Easy Database...
LeetCode medium SQL problems: • LeetCode Medium Databa...
LeetCode hard SQL problems: • LeetCode Hard Database...

Пікірлер: 10
@user-jz3vz4gp9y
@user-jz3vz4gp9y Жыл бұрын
Great to see you back again, you were huge for teaching me sql and making me better at sql
@SATULAL
@SATULAL Жыл бұрын
I'm learning SQL and I literally just thought about this issue yesterday! Great timing.
@beingcheercool
@beingcheercool Жыл бұрын
I just love you videos 😍 Keep growing man!!
@amanmehrotra44
@amanmehrotra44 Жыл бұрын
I think it's almost after 3 months since you made this video buddy. Please keep making such videos. The day after I saw your last posted video, I was like - "Man, what would I do from tomorrow to advance further in SQL". Thanks once again for such gem content. :)
@christoslefkimiotis9889
@christoslefkimiotis9889 Жыл бұрын
Very good explanation. The way you got around using a subquery was nice.
@frederikmuller
@frederikmuller Жыл бұрын
Thank you! Maybe that’s the point of using HAVING, after all.
@atmaj4244
@atmaj4244 Жыл бұрын
I started learning SQL in Google Data Analytics course its been 1 month, I can use BasicSQL functions with filters which site you recommend to practice
@frederikmuller
@frederikmuller Жыл бұрын
Do the Hackerrank SQL gold badge and then move on to LeetCode and StrataScratch questions.
@seaholmekobudo1693
@seaholmekobudo1693 Жыл бұрын
Wouldn't ending this with "Having class = Math" be cheating as that relies on us already knowing the answer?
@frederikmuller
@frederikmuller Жыл бұрын
you’re right, just an example of how HAVING could be used, as well.
Learn GROUP BY vs PARTITION BY in SQL
14:03
Anthony Smoak
Рет қаралды 34 М.
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 9 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 8 МЛН
Каха и суп
00:39
К-Media
Рет қаралды 6 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
When to Use a Subquery in SQL
8:50
Database Star
Рет қаралды 31 М.
Advanced Aggregate Functions in SQL (GROUP BY, HAVING vs. WHERE)
6:00
Becoming a Data Scientist
Рет қаралды 239 М.
SQL : All numbers that appear at least three times consecutively
14:16
SQL Window Functions in 10 Minutes
10:13
Colt Steele
Рет қаралды 66 М.
How do indexes make databases read faster?
23:25
Arpit Bhayani
Рет қаралды 56 М.
Would America Be Better Under Communism? | Middle Ground
47:15
SQL CTEs (Common Table Expressions) - Why and How to Use Them
7:56
Database Star
Рет қаралды 28 М.
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 9 МЛН