INCOMPATIBLE_TYPES_FOR_COMPARISON=CWSPT0790E: Expression in view {6} compares column {2} of type {4} with column {3} of type {5}.
Explanation
In order for two columns to be comparable, they must be two numerics, two booleans, or two strings.
User response
Rewrite query to make sure columns are comparable