Hi, I would like to know whether I can test some value against a condition in each returned row somehow in the query?
e.g.: I have columns:
X Y Z
-1 1 2
2 2 -1
3 -1 3
I want to use avg() for all values except for -1. I CANNOT use where<> -1 as each row contains it once.