The information in this article applies to: 
 SYMPTOMS
When executing a correlated subquery with aggregate functions MAX or MIN,
the char non-null datatype column of a table, and the actual data entered
in the column is less than the total column width (for example, entering a
string of length 1 into char(2) column), you may get less rows on you may
than expected.
 It will return the following two rows: However, the rows that should be returned are: 
WORKAROUND
To work around this problem, please use the following query:
 Optionally, you may also change the datatype to char null or varchar in the table. STATUSMicrosoft has confirmed this to be a problem in SQL Server version 4.21. Additional query words: aggregate 
Keywords          : kbprg kbbug4.20 kbbug4.21 SSrvServer SSrvWinNT   | 
| 
 Last Reviewed: November 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use.  |