Differences Between WHERE and HAVING Clauses in SQL | Common SQL Interview Question

preview_player
Показать описание
Explore the full SQL & Postgresql Course on Udemy:

Differences Between WHERE and HAVING Clauses in SQL | Common SQL Interview Question.

By the end of this SQL Tutorial video you will:

- Understand how WHERE clauses and HAVING clauses work in SQL
- Learn the key differences between WHERE and HAVING clauses
- Know when to use WHERE clauses and when to use HAVING clauses.
- Have gone through some real world examples of WHERE and HAVING Clauses.

#sql
#postgresql
#sqltutorial
Рекомендации по теме
Комментарии
Автор

Hello Jon, It would be very useful to add how to save video at the beginning. I found a work around, I used every time I logged into PGAdmin, but my work around doesn't work with cloning. I get the error message "there are two other sessions using this database". Alternatively, It would be nice to get a resources package, if we don't manage to clone. BTW I like your SQL course a lot, I recommend everyone to check it.

victorvictornotaro
Автор

Thanks for this crystal clear explanation... The syntax for using both WHERE and HAVING clauses could have been SELECT AGG(Column_name1), Column_name2 from table_name WHERE column_name3 = value1 GROUP BY Column_name2 HAVING AGG(Column_name1) > value2

muthuramans
Автор

Is there any issue with postgresql 14?
Just wanted to know before I started using it...

jczmefp