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

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • 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/p...
    StrataScratch 10315:
    • Real SQL Interview Que...
    platform.strat...
    Alex the Analyst video:
    • Intermediate SQL Tutor...
    w3schools and Microsoft resources:
    www.w3schools....
    learn.microsof...
    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

  • @amanmehrotra44
    @amanmehrotra44 ปีที่แล้ว +1

    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. :)

  • @SATULAL
    @SATULAL ปีที่แล้ว

    I'm learning SQL and I literally just thought about this issue yesterday! Great timing.

  • @user-jz3vz4gp9y
    @user-jz3vz4gp9y ปีที่แล้ว

    Great to see you back again, you were huge for teaching me sql and making me better at sql

  • @beingcheercool
    @beingcheercool ปีที่แล้ว +1

    I just love you videos 😍
    Keep growing man!!

  • @christoslefkimiotis9889
    @christoslefkimiotis9889 ปีที่แล้ว

    Very good explanation. The way you got around using a subquery was nice.

    • @frederikmuller
      @frederikmuller  ปีที่แล้ว +1

      Thank you! Maybe that’s the point of using HAVING, after all.

  • @atmaj4244
    @atmaj4244 ปีที่แล้ว +1

    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  ปีที่แล้ว +1

      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.