Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SQL 2023 ANY_VALUE aggregate function. (#7617)
- Loading branch information
1 parent
fa9c6d4
commit 986e96f
Showing
5 changed files
with
146 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Aggregate Functions | ||
|
||
|
||
## ANY_VALUE (Firebird 6.0) | ||
|
||
`ANY_VALUE` is a non-deterministic aggregate function that returns its expression for an arbitrary | ||
record from the grouped rows. | ||
|
||
`NULLs` are ignored. It's returned only in the case of none evaluated records having a non-null value. | ||
|
||
Syntax: | ||
|
||
``` | ||
<any value> ::= ANY_VALUE(<expression>) | ||
``` | ||
|
||
Example: | ||
|
||
``` | ||
select department, | ||
any_value(employee) employee | ||
from employee_department | ||
group by department | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters