The information in this article applies to:
BUG #: 42324 (SQLBUG_70) BUG #: 18771 (SQLBUG_65) SYMPTOMSWhen adding two expressions e1 and e2 with scales s1 and s2 (each a decimal type) the expected result for the scale is the max(s1,s2) for the result. For example:
When either the SUM or AVG aggregates are used in one of the expressions, the scale of the result may be incorrect. In the case of SUM, the resulting scale is the smallest scale provided as input to the SUM function. In the case of the AVG function, the scale is a fixed value that may not reflect either the scale of e1 or e2.
WORKAROUNDHere are two workarounds that you can implement to avoid this problem:
STATUSMicrosoft has confirmed this to be a problem in SQL Server version 6.5 and SQL Server version 7.0. Additional query words:
Keywords : kbSQLServ650bug kbSQLServ700bug |
Last Reviewed: January 14, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |