Wednesday, February 15, 2012

Null value is eliminated by an aggregate or other SET operation


The Problem occurs when an aggregate function(max,sum,avg..) exists on null values. Trying to get rid of the null values may be the solution but in certain cases..you may need the extra data relying on the null values.
So whats the solution?
Append set ANSI_WARNINGS OFF on the beginning of the sql statement.

No comments:

Post a Comment