The information in this article applies to:
SUMMARY
In an UPDATE statement, an aggregate function cannot appear directly
in the SET list. For example, an attempt to execute a query such as,
generates the following message in 4.2:
MORE INFORMATION
When an aggregate appears in the SET list of an UPDATE statement as
above, there exists an ambiguity as to whether the associated WHERE
clause qualifies the rows to be updated or it qualifies the rows on
which to apply the aggregate function. The correct way to do this is:
This is in accordance with ANSI Specification. Additional query words: 4.20
Keywords : kberrmsg SSrvServer |
Last Reviewed: March 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |