Hi ,
Can any one tell me how to convert varchar to integer in the sub query.
i have tried the below code and it's not working.
Code:
select * from Table1 where COL1 NOT IN (SELECT COL2 AS INTEGER FROM Table2 WHERE CODE_CATG_N='XXXX')
Quote:
|
col1 is smallint and col2 is varchar
|
the error it is giving is
Quote:
|
SQL0401N The data types of the operands for the operation "IN" are not
|