Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Symptoms

A SELECT query that uses a batch mode hash aggregate operator that counts multiple nullable columns in the query execution plan returns incorrect results in SQL Server. This may occur when you use column store indexes, although it depends on the query pattern. For example, you may notice it for queries that use a PIVOT clause.

Resolution

This fix is included in the following cumulative updates for SQL Server:

Cumulative Update 4 for SQL Server 2017

Cumulative Update 6 for SQL Server 2016 Service Pack 1

Cumulative Update 9 for SQL Server 2014 Service Pack 2

About SQL Server builds

Each new build for SQL Server contains all the hotfixes and security fixes that were in the previous build. We recommend that you install the following latest builds for SQL Server:

Latest cumulative update for SQL Server 2017

Latest build for SQL Server 2016

Latest cumulative update for SQL Server 2014

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References

Learn about the terminology Microsoft uses to describe software updates.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×