Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI SQL Data Access Server (RTQP Engine)

AVG

  • Last UpdatedDec 19, 2022
  • 1 minute read

The AVG function returns the average of the values in a group.

Syntax

Int8 AVG(x Int8)
Int16 AVG(x Int16)
Int32 AVG(x Int32)
Int64 AVG(x Int64)
UInt8 AVG(x UInt8)
UInt16 AVG(x UInt16)
UInt32 AVG(x UInt32)
UInt64 AVG(x UInt64)
Single AVG(x Single)
Double AVG(x Double)
TimeSpan Avg(x TimeSpan)

Arguments

  • x

    Can be a real number or TimeSpan.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in