In this blog post, let’s learn about the error message “4040 The operands of a BETWEEN predicate must be of equal degree.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
4040 The operands of a BETWEEN predicate must be of equal degree.
Reason for the Error
You specified operands for a BETWEEN predicate that are not of equal degree, which is required.
Solution
Correct the syntax so that the operands are of equal degree and resubmit