File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ description: Learn about the GROUP BY clause for Azure Cosmos DB.
4
4
author : timsander1
5
5
ms.service : cosmos-db
6
6
ms.topic : conceptual
7
- ms.date : 10/11/2019
7
+ ms.date : 04/ 10/2020
8
8
ms.author : tisande
9
9
10
10
---
@@ -48,6 +48,12 @@ The GROUP BY clause divides the query's results according to the values of one o
48
48
- Subqueries
49
49
- Aggregate system functions (these are only allowed in the SELECT clause)
50
50
51
+ Queries with an aggregate system function and a subquery with ` GROUP BY ` are not supported. For example, the following query is not supported:
52
+
53
+ ``` sql
54
+ SELECT COUNT (UniqueLastNames) FROM (SELECT AVG (f .age ) FROM f GROUP BY f .lastName ) AS UniqueLastNames
55
+ ```
56
+
51
57
## Examples
52
58
53
59
These examples use the nutrition data set available through the [ Azure Cosmos DB Query Playground] ( https://www.documentdb.com/sql/demo ) .
Original file line number Diff line number Diff line change 1
1
---
2
2
title : SQL keywords for Azure Cosmos DB
3
3
description : Learn about SQL keywords for Azure Cosmos DB.
4
- author : markjbrown
4
+ author : timsander1
5
5
ms.service : cosmos-db
6
6
ms.topic : conceptual
7
- ms.date : 03/17 /2020
8
- ms.author : mjbrown
7
+ ms.date : 04/10 /2020
8
+ ms.author : tisande
9
9
10
10
---
11
11
# Keywords in Azure Cosmos DB
You can’t perform that action at this time.
0 commit comments