Skip to content

Commit 85367da

Browse files
authored
Merge pull request #245143 from seesharprun/cosmos-populate-nosql
Cosmos DB | Add NoSQL query functions #1
2 parents 8f0fe6b + da8cdab commit 85367da

18 files changed

+426
-414
lines changed

articles/cosmos-db/.openpublishing.redirection.cosmos-db.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6079,6 +6079,31 @@
60796079
"source_path_from_root": "/articles/cosmos-db/nosql/query/type-checking-functions.md",
60806080
"redirect_url": "/azure/cosmos-db/nosql/query/system-functions",
60816081
"redirect_document_id": false
6082+
},
6083+
{
6084+
"source_path_from_root": "/articles/cosmos-db/nosql/query/aggregate-avg.md",
6085+
"redirect_url": "/azure/cosmos-db/nosql/query/average",
6086+
"redirect_document_id": true
6087+
},
6088+
{
6089+
"source_path_from_root": "/articles/cosmos-db/nosql/query/aggregate-count.md",
6090+
"redirect_url": "/azure/cosmos-db/nosql/query/count",
6091+
"redirect_document_id": true
6092+
},
6093+
{
6094+
"source_path_from_root": "/articles/cosmos-db/nosql/query/aggregate-sum.md",
6095+
"redirect_url": "/azure/cosmos-db/nosql/query/sum",
6096+
"redirect_document_id": true
6097+
},
6098+
{
6099+
"source_path_from_root": "/articles/cosmos-db/nosql/query/aggregate-max.md",
6100+
"redirect_url": "/azure/cosmos-db/nosql/query/max",
6101+
"redirect_document_id": true
6102+
},
6103+
{
6104+
"source_path_from_root": "/articles/cosmos-db/nosql/query/aggregate-min.md",
6105+
"redirect_url": "/azure/cosmos-db/nosql/query/min",
6106+
"redirect_document_id": true
60826107
}
60836108
]
60846109
}

articles/cosmos-db/nosql/query/TOC.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,22 @@
6868
items:
6969
- name: Aggregate functions
7070
displayName: functions, aggregate, count, sum, min, minimum, max, maximum, avg, average
71-
href: aggregate-functions.md
72-
- name: Avg
71+
href: aggregate-functions.yml
72+
- name: AVG
7373
displayName: functions, aggregate, avg, average
74-
href: aggregate-avg.md
75-
- name: Count
74+
href: average.md
75+
- name: COUNT
7676
displayName: functions, aggregate, count
77-
href: aggregate-count.md
78-
- name: Max
77+
href: count.md
78+
- name: MAX
7979
displayName: functions, aggregate, max, maximum
80-
href: aggregate-max.md
81-
- name: Min
80+
href: max.md
81+
- name: MIN
8282
displayName: functions, aggregate, min, minimum
83-
href: aggregate-min.md
84-
- name: Sum
83+
href: min.md
84+
- name: SUM
8585
displayName: functions, aggregate, sum
86-
href: aggregate-sum.md
86+
href: sum.md
8787
- name: System functions
8888
items:
8989
- name: System functions

articles/cosmos-db/nosql/query/abs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.reviewer: sidandrews
88
ms.service: cosmos-db
99
ms.subservice: nosql
1010
ms.topic: reference
11-
ms.date: 07/01/2023
11+
ms.date: 07/17/2023
1212
ms.custom: query-reference
1313
---
1414

@@ -38,7 +38,7 @@ Returns a numeric expression.
3838

3939
The following example shows the results of using this function on three different numbers.
4040

41-
:::code language="sql" source="~/cosmos-db-nosql-query-samples/scripts/absolute-value/query.sql":::
41+
:::code language="sql" source="~/cosmos-db-nosql-query-samples/scripts/absolute-value/query.sql" highlight="2-4":::
4242

4343
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/absolute-value/result.json":::
4444

articles/cosmos-db/nosql/query/acos.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.reviewer: sidandrews
88
ms.service: cosmos-db
99
ms.subservice: nosql
1010
ms.topic: reference
11-
ms.date: 07/01/2023
11+
ms.date: 07/17/2023
1212
ms.custom: query-reference
1313
---
1414

@@ -38,19 +38,9 @@ Returns a numeric expression.
3838

3939
The following example calculates the arccosine of the specified values using the function.
4040

41-
```sql
42-
SELECT VALUE {
43-
arccosine: ACOS(-1)
44-
}
45-
```
46-
47-
```json
48-
[
49-
{
50-
"arccosine": 3.141592653589793
51-
}
52-
]
53-
```
41+
:::code language="sql" source="~/cosmos-db-nosql-query-samples/scripts/arccosine/query.sql" highlight="2":::
42+
43+
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/arccosine/result.json":::
5444

5545
## Remarks
5646

articles/cosmos-db/nosql/query/aggregate-avg.md

Lines changed: 0 additions & 49 deletions
This file was deleted.

articles/cosmos-db/nosql/query/aggregate-count.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

articles/cosmos-db/nosql/query/aggregate-functions.md

Lines changed: 0 additions & 71 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
### YamlMime:Landing
2+
3+
title: Aggregate functions in Azure Cosmos DB for NoSQL
4+
summary: Azure Cosmos DB for NoSQL provides many aggregate functions to perform a calculation on a set of values in the SELECT clause.
5+
6+
metadata:
7+
title: Aggregate functions (NoSQL query)
8+
titleSuffix: Azure Cosmos DB for NoSQL
9+
description: |
10+
Azure Cosmos DB for NoSQL provides many aggregate functions to perform a calculation on a set of values in the `SELECT` clause.
11+
author: jcodella
12+
ms.author: jacodel
13+
ms.reviewer: sidandrews
14+
ms.service: cosmos-db
15+
ms.subservice: nosql
16+
ms.topic: landing-page
17+
ms.date: 07/17/2023
18+
ms.custom: query-reference
19+
20+
landingContent:
21+
- title: Aggregate functions
22+
linkLists:
23+
- linkListType: reference
24+
links:
25+
- text: AVG
26+
url: average.md
27+
- text: COUNT
28+
url: count.md
29+
- text: MAX
30+
url: max.md
31+
- text: MIN
32+
url: min.md
33+
- text: SUM
34+
url: sum.md

articles/cosmos-db/nosql/query/aggregate-max.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)