Skewness_samp Function
The skewness_samp function returns the sample moment coefficient of skewness of a set of values.
The syntax of the skewness_samp function is
skewness_samp(x[,w])
x are the values for which the population moment coefficient of skewness
shall be calculated.
Null values are ignored.
If the number of
values is zero, the function returns null.
w are the weights.
If no value is provided the weight is assumed to be 1.
Example
SELECT country, skewness_samp(price) FROM sales GROUP BY country;