You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1098,7 +1099,7 @@ The typing environment for ordering directives is obtained by taking the typing
1098
1099
1099
1100
The number and types of the aggregation expressions are restricted as follows:
1100
1101
1101
-
- A ``max``, ``min``or ``rank`` aggregation must have a single expression.
1102
+
- A ``max``, ``min``, ``rank`` or ``unique`` aggregation must have a single expression.
1102
1103
- The type of the expression in a ``max``, ``min`` or ``rank`` aggregation without an ordering directive expression must be an orderable type.
1103
1104
- A ``count`` or ``strictcount`` aggregation must not have an expression.
1104
1105
- A ``sum``, ``strictsum`` or ``avg`` aggregation must have a single aggregation expression, which must have a type which is a subtype of ``float``.
@@ -1140,6 +1141,8 @@ The values of the aggregation expression are given by applying the aggregation f
1140
1141
1141
1142
- If the aggregation id is ``strictconcat``, then the result is the same as for ``concat`` except in the case where there are no aggregation tuples in which case the aggregation has no value.
1142
1143
1144
+
- If the aggregation id is ``unique``, then the result is the value of the aggregation variable if there is precisely one such value. Otherwise, the aggregation has no value.
1145
+
1143
1146
Any
1144
1147
~~~
1145
1148
@@ -1976,7 +1979,8 @@ The complete grammar for QL is as follows:
0 commit comments