Skip to content

Commit 3b0d27d

Browse files
authored
Merge pull request #7063 from meet-bhagdev/patch-84
Use of DISTINCT is not allowed with the OVER clause.
2 parents fe87a11 + 6fdc569 commit 3b0d27d

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,11 @@ monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-s
3535
## Syntax
3636

3737
```
38-
-- Syntax for SQL Server and Azure SQL Database
39-
40-
VARP ( [ 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-
4738
-- Aggregate Function Syntax
4839
VARP ( [ ALL | DISTINCT ] expression )
4940
5041
-- Analytic Function Syntax
51-
VARP (expression) OVER ( [ partition_by_clause ] order_by_clause)
42+
VARP ([ ALL ] expression) OVER ( [ partition_by_clause ] order_by_clause)
5243
```
5344

5445
## Arguments

0 commit comments

Comments
 (0)