stddev returns 0 when the number of rows is one. I would have expected nullto be returned in this case as the standard deviation is undefined whenthere is one row.