Skip to content

Commit 27b4274

Browse files
committed
fix query formatting
1 parent c05fe6d commit 27b4274

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

articles/cosmos-db/sql-query-group-by.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ The GROUP BY clause divides the query's results according to the values of one o
4747
Queries with an aggregate system function and a subquery with `GROUP BY` are not supported. For example, the following query is not supported:
4848

4949
```sql
50-
SELECT COUNT(UniqueLastNames) FROM (SELECT AVG(f.age) FROM f GROUP BY f.lastName) AS UniqueLastNames
50+
SELECT COUNT(UniqueLastNames)
51+
FROM (
52+
SELECT AVG(f.age)
53+
FROM f
54+
GROUP BY f.lastName
55+
) AS UniqueLastNames
5156
```
5257

5358
## Examples

0 commit comments

Comments
 (0)