Difference between where and having in SQL Server

Publicado el: 21 julio 2021
en el canal de: DataGuru Naval
306
6

For database related videos, please subscribe channel
   / @datagurunaval  

WHERE clause cannot be used with aggregates, but the HAVING clause can.

Where clause filters rows before aggregate calculations are performed where as
Having clause filters rows after aggregate calculations are performed.
so from performance standpoint, HAVING is slower than WHERE and should be avoided when possible


En esta página del sitio puede ver el video en línea Difference between where and having in SQL Server de Duración hora minuto segunda en buena calidad , que subió el usuario DataGuru Naval 21 julio 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 306 veces y le gustó 6 a los espectadores. Disfruta viendo!