We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c05fe6d commit 27b4274Copy full SHA for 27b4274
articles/cosmos-db/sql-query-group-by.md
@@ -47,7 +47,12 @@ The GROUP BY clause divides the query's results according to the values of one o
47
Queries with an aggregate system function and a subquery with `GROUP BY` are not supported. For example, the following query is not supported:
48
49
```sql
50
-SELECT COUNT(UniqueLastNames) FROM (SELECT AVG(f.age) FROM f GROUP BY f.lastName) AS UniqueLastNames
+SELECT COUNT(UniqueLastNames)
51
+FROM (
52
+SELECT AVG(f.age)
53
+FROM f
54
+GROUP BY f.lastName
55
+) AS UniqueLastNames
56
```
57
58
## Examples
0 commit comments