Prerequisite – PL/SQL introduction
In PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we declare variables and between begin and end part, we perform the operations.
Given three numbers and the task is to find greatest among them.
Input: a = 46, b = 67, c = 21 Output: 67 Input: a = 9887, b = 4554, c = 212 Output: 9887
Approach is to consider the first number and compare it with other two numbers. Similarly, check with second and third.
Below is the required implementation:
Greatest number is 67
- PLSQL | GREATEST Function
- PLSQL | LN Function
- PLSQL | CHR Function
- PLSQL : || Operator
- PLSQL | LOG Function
- PLSQL | TAN Function
- PLSQL | EXP Function
- PLSQL | MOD Function
- PLSQL | COS Function
- PLSQL | SIN Function
- PLSQL | ABS Function
- Difference between SQL and PLSQL
- PLSQL | LEAST Function
- PLSQL | LAST_DAY Function
- PLSQL | DUMP Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.