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

Поделиться
HTML-код
  • Опубликовано: 14 ноя 2022
  • 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

  • @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.