Skip to content

Commit b354ba6

Browse files
authored
Added MIN to numeric functions (#4790)
1 parent 7bb150f commit b354ba6

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

sql/plsql/PlSqlParser.g4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6936,6 +6936,7 @@ numeric_function
69366936
| COUNT '(' (ASTERISK | ((DISTINCT | UNIQUE | ALL)? concatenation)?) ')' over_clause?
69376937
| ROUND '(' expression (',' UNSIGNED_INTEGER)? ')'
69386938
| AVG '(' (DISTINCT | ALL)? expression ')'
6939+
| MIN '(' (DISTINCT | ALL)? expression ')'
69396940
| MAX '(' (DISTINCT | ALL)? expression ')'
69406941
| LEAST '(' expressions_ ')'
69416942
| GREATEST '(' expressions_ ')'

sql/plsql/examples/avg_min_max.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT AVG(column_name), MIN(column_name), MAX(column_name) FROM table_name

0 commit comments

Comments
 (0)