Oracle Error PLS-00392: Type mismatch in arguments to BETWEEN

Oracle Error Message

PLS-00392: Type mismatch in arguments to BETWEEN

Reason for the Error

In a comparison such as X BETWEEN Y AND Z, the expressions X, Y, and Z do not match in datatype, and it is unclear which implicit conversion is required to correct the mismatch.

Solution

Change the expressions so that their datatypes match. You might want to use datatype conversion functions.