max(a, attr)
max(a)
Returns the maximum of the specified attr for tuples in relation a.
If the relation has only one attribute then it is used and no attr need be specified.
Examples
None
max($S[SNO="S0"], STATUS)
-9223372036854775808 // note: smallest possible int, i.e. max({a:int}{})
Some
max($S, STATUS)
30
Literal vs scalar
v1:=42
max({a}{[100][v1]})
100