The information in this article applies to:
SYMPTOMS
Using a DISTINCT clause with an ORDER BY clause in a SELECT statement,
where the column being ordered by is not in the select list, may not
cause duplicate rows to be eliminated from the result, for example:
returns
WORKAROUNDTo work around the above problem, include the ORDER BY column in the select list in the query. STATUSMicrosoft has confirmed this to be a problem in SQL Server version 4.2. Additional query words:
Keywords : kbprg kbbug4.20 SSrvServer SSrvWinNT |
Last Reviewed: November 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |