GeertS wrote:
> Hi all,
> Seems like I've got a problem with avg() and Query of
Queries.
> I've got fields like this:
> 100,null,100
> Now if I do an average with SQL server, it ignores the
null. But this is not
> the case for QoQ. Is there another way to tell the avg
that it needs to ignore
> empty lines?
> Thank you for your help
> Geert
>
I'm not sure, never tested this, but since ColdFusion does
not actually
have a null, those may be empty strings in the QoQ. So maybe
you can
add a where clause to filter out the empty records
WHERE averageField <> '' or something like that.