Applies a condition to groups produced by GROUP BY, often on an aggregate such as SUM(). WHERE works earlier, on individual rows before they are grouped.
Read more: Microsoft Learn
In the Ultra Transcenders books
Each book explains HAVING in context, with comparison tables and the common traps.
Terms in this definition
- GROUP BY
Collapses rows sharing the same values of chosen expressions into one row per bucket, with aggregate functions evaluated for each bucket. Writing
GROUP BY ALLpicks every expression in the select list that isn't an aggregate. - SUM
Totals every numeric value held in one column. Where each row needs its own expression evaluated first, SUMX is needed.
- WHERE
Limits a SELECT, UPDATE or DELETE to just the rows meeting a condition. Omit it, and the statement hits every row.
- EARLIER
Within nested DAX row contexts, lets an inner calculation read a column as it stood in an outer pass; EARLIEST jumps to the outermost. Most people now use variables, which read more clearly.
Related terms
- Active-active
A VPN gateway set-up where traffic flows through both instances simultaneously, each having a separate tunnel and public IP. Servicing one instance therefore disrupts connections less than under default active-standby.
- Client-side labelling
Automatic labelling defined inside a sensitivity label, which suggests or applies it in Office apps such as Outlook and Word as people work, with the user having the final say. Labelling done by the service relies on auto-labelling policies instead.
- Co-authoring for files with sensitivity labels
A Purview option allowing multiple people to work on label-encrypted files simultaneously in the Office desktop apps, rather than having to check the files out.
- Constraint
Set by someone other than the architect, it fixes a limit the design cannot change, such as reusing existing hardware, a fixed budget or having just one data centre. Its effect is recorded and worked around, and any gap it leaves is logged as a risk.
- Dedicated vSphere Cluster for NSX Edge Node model
A VCF distributed switch layout for a vSphere cluster used solely for NSX Edge nodes, with each host having four physical NICs across two distributed switches and hosting two pinned edge nodes with dedicated uplinks. Edges get resources to themselves and maximum throughput, but more servers are needed.
- Direct copy
Loading a Fabric warehouse by having the Copy activity call the COPY statement straight against Parquet or delimited text files held in Azure Blob Storage or ADLS Gen2, with no intermediate step. If the format or settings aren't supported, staged copy has to be used instead.
- Emergency access account
A cloud-only, non-personal account that holds Global Administrator permanently and sits outside Conditional Access, reserved for situations where regular admins can't get in. Microsoft advises having two or more.
- IPAM
AHV's way of giving VMs addresses through DHCP. Having it makes a network managed and lacking it makes one unmanaged, a choice made only when the network is created.