Oracle Error PLS-00203: function DECODE must be called with at least 3 non-boolean arguments

Oracle Error Message

PLS-00203: function DECODE must be called with at least 3 non-boolean arguments

Reason for the Error

Less than three arguments were passed to the built-in function DECODE. Though DECODE takes a variable number of (non-Boolean) arguments, at least three arguments must be passed.

Solution

Call DECODE with three or more arguments