PQL avg()

PQL AVG Function
The AVG function returns the average value of a numeric column.

PQL AVG Example
We have the following "Orders" stable:

Now we want to find the average value of the "OrderPrice" fields.

We use the following PQL statement:

The result-set will look like this:

Now we want to find the customers that have an OrderPrice value higher than the average OrderPrice value.

We use the following PQL statement:

The result-set will look like this: