The information in this article applies to:
SYMPTOMS
A SELECT statement that includes a correlated subquery in the select
list, where the subquery performs an aggregate operation on a DISTINCT
column and the outermost SELECT statement has a restriction clause of a
structure more complex than <column> <relational operator> <constant>, may
result in the following error:
MORE INFORMATION
This problem is specific to the structure of the SELECT statement. If any
part of the statement is altered the error will not be raised.
The following select statement will demonstrate the problem:
If the final restriction clause is changed to 'column > constant', thus:
the statement will be executed as expected. If the DISTINCT clause is removed from the subquery again, the query will execute as expected. STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.50.0201. This problem has been corrected in U.S. Service Pack 1 for Microsoft SQL Server version 6.50.0201. For more information, contact your primary support provider.
Keywords : |
Last Reviewed: March 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |