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)

SUM

  • Last UpdatedDec 19, 2022
  • 1 minute read

The SUM function returns the total of all values in the group.

Syntax

Int32 SUM(x Int8)
Int32 SUM(x Int16)
Int32 SUM(x Int32)
Int64 SUM(x Int64)
UInt32 SUM(x UInt8)
UInt32 SUM(x UInt16)
UInt32 SUM(x UInt32)
UInt64 SUM(x UInt64)
Double SUM(x Single)
Double SUM(x Double)
Time SUM(x TimeSpan)

Arguments

  • x

    Can be a real number or a TimeSpan.

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