I would like to use the IN
clause, but with the convert
function.
Basically, I have a table (A
) with the column of type int
.
But in the other table (B
) I Have values which are of type varchar
.
Essentially, what I am looking for something like this
select *
from B
where myB_Column IN (select myA_Columng from A)
However, I am not sure if the int
from table A
, would map / convert / evaluate properly for the varchar
in B
.
I am using SQL Server 2008.