VAR_POP( )

This MySQL function returns the variance of a given column, based on the rows selected as a population.

Syntax

Below is the syntax for this command. Text within square brackets (i.e, [ and ] ) are optional. Choices are separated by bars (i.e, | ). Ellipses preceded by a comma indicates a repeating pattern. Ellipses before or after syntax are used to highlight a relevant except from the larger syntax. Text displayed in italic letters represent text that should be replaced with the specific names related to the database (e.g., column with the name of the column).

VAR_POP(expression)

Explanation

This function returns the variance of a given column, based on the rows selected as a population. It's synonymous with VARIANCE and was added in version 5.0.3 of MySQL for compliance with SQL standards. See the description of VAR_SAMP( ) for an example of this function's use.