FIX: Incorrect Results with Count Distinct and Aggregate in Select List (255804)
The information in this article applies to:
- Microsoft SQL Server 7.0 Service Pack 1
This article was previously published under Q255804
BUG #: 57375 (SQLBUG_70)
SYMPTOMS
A query containing all of the following may return incorrect results:
- An aggregate function in the SELECT list.
- A COUNT DISTINCT.
- A join.
WORKAROUND
Forcing a different join strategy with a query hint may appear to resolve the problem for a particular query; however, we do not recommend forcing a different join because the problem may occur with any join strategy.
Removing either the COUNT DISTINCT or the aggregate function circumvents the problem.
STATUS
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0.
For more information, click the following article number to view the article in the Microsoft Knowledge Base: 274799 INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.
Modification Type: | Major | Last Reviewed: | 3/14/2006 |
---|
Keywords: | kbBug kbfix kbQFE KB255804 |
---|
|