Difference between where and having in SQL Server

Pubblicato il: 21 luglio 2021
sul canale di: 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


In questa pagina del sito puoi guardare il video online Difference between where and having in SQL Server della durata di ore minuti seconda in buona qualità , che l'utente ha caricato DataGuru Naval 21 luglio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 306 volte e gli è piaciuto 6 spettatori. Buona visione!