This Oracle tutorial explains how to use the Oracle/PLSQL GREATEST function with syntax and examples.
The Oracle/PLSQL GREATEST function returns the greatest value in a list of expressions.
The syntax for the GREATEST function in Oracle/PLSQL is:
The first expression to be evaluated whether it is the greatest.
Optional. Additional expressions that are to be evaluated.
The GREATEST function returns a value that is the same datatype as expr1.
The GREATEST function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle GREATEST function examples and explore how to use the GREATEST function in Oracle/PLSQL.
For example: