We have license db2 9.7 and production is on 9.5 . so when we create sql queries on 9.7 database the code is sucessful but this does not work on 9.5 database and gives error
SQL0401N The data types of the operands for the operation "=" are not
compatible. SQLSTATE=42818


Please help