- Categories:
SKEW (system data metric function)¶
Returns the sample skewness of the values in the specified column in a table.
This topic provides the syntax for calling the function directly. To learn how to associate the function with a table or view so it runs at regular intervals, see Associate a DMF.
Syntax¶
Arguments¶
querySpecifies a SQL query that projects a single column.
Allowed data types¶
The column projected by the query must have one of the following data types:
FLOATNUMBER
Returns¶
The function returns a FLOAT value. NULL values are ignored. The function returns NULL if the column contains fewer than
three
non-NULL values, or if all of its values are the same.
Usage notes¶
- The function uses the same sample formula as the SKEW aggregate function. A symmetric distribution has a skewness of 0.
Example¶
Measure the skewness in the order_total column: