I have 2 tables, table1 and table2, and I am using
insert into table1
( Col1,
Col2,
Col3
)
select
( ColA,
ColB,
ColC
)
from
table2
but the logic between Col3 and ColC is this:
if ColC = 'A' then Col3 = Y
else Col3 = N
What's the SQL for this, I am using SQL Server 2005.