I\'m in the process of writing a report and am looking to get the average value of an age column. The problem is that not all rows have an age.
If the values for the
SELECT AVG (CASE WHEN Value <> 0 THEN Value ELSE NULL END) ....
AVG won't take into account NULL values. Or this
AVG (NULLIF(Value, 0))