Skip to content

Commit 5c6128e

Browse files
authored
Merge pull request #7061 from meet-bhagdev/patch-83
Use of DISTINCT is not allowed with the OVER clause.
2 parents 3b0d27d + 417d593 commit 5c6128e

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

docs/t-sql/functions/var-transact-sql.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,12 @@ monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-s
3434

3535
## Syntax
3636

37-
```
38-
-- Syntax for SQL Server and Azure SQL Database
39-
40-
VAR ( [ ALL | DISTINCT ] expression )
41-
[ OVER ( [ partition_by_clause ] order_by_clause ) ]
42-
```
43-
44-
```
45-
-- Syntax for Azure SQL Data Warehouse and Parallel Data Warehouse
46-
37+
```
4738
-- Aggregate Function Syntax
4839
VAR ( [ ALL | DISTINCT ] expression )
4940
5041
-- Analytic Function Syntax
51-
VAR (expression) OVER ( [ partition_by_clause ] order_by_clause)
42+
VAR ([ ALL ] expression) OVER ( [ partition_by_clause ] order_by_clause)
5243
```
5344

5445
## Arguments

0 commit comments

Comments
 (0)