Hello!
I am trying to fix this IF statement error. All i want is the value of column 'Column2' to display if column 'Column1' = y.
IF (Column1 = 'Y', Column2 , '0') "ColumnTEST",
The data type for column2 is numericsts and the data type for Column1 is char.
This is the error message i get:
ODBC Error: SQLSTATE = S1000, Native error code = 0
Incompatible types in expression.
What am i doing wrong here? the SQL statement seems fine, to me. Any thoughts and comments are highly appreciated. Thanks in Advance!
I am trying to fix this IF statement error. All i want is the value of column 'Column2' to display if column 'Column1' = y.
IF (Column1 = 'Y', Column2 , '0') "ColumnTEST",
The data type for column2 is numericsts and the data type for Column1 is char.
This is the error message i get:
ODBC Error: SQLSTATE = S1000, Native error code = 0
Incompatible types in expression.
What am i doing wrong here? the SQL statement seems fine, to me. Any thoughts and comments are highly appreciated. Thanks in Advance!