Incompatible data types for compare (Error 40014).

You attempted to compare incompatible data types. For example, you tried to compare a binary type with a numeric type.