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)

MAX

  • Last UpdatedDec 19, 2022
  • 1 minute read

The MAX function returns the maximum value in the group.

Syntax

Int8 MAX(x Int8)
Int16 MAX(x Int16)
Int32 MAX(x Int32)
Int64 MAX(x Int64)
UInt8 MAX(x UInt8)
UInt16 MAX(x UInt16)
UInt32 MAX(x UInt32)
UInt64 MAX(x UInt64)
Single MAX(x Single)
Double MAX(x Double)
AnsiString MAX(s AnsiString)
String MAX(s String)
DateTime MAX(x DateTime)
Time MAX(x TimeSpan)

Arguments

  • x

    Can be a real number, string, DateTime, or TimeSpan.

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