I want to insert values into a table_A from table_B where some conditions are met. Here is what I want to do but does not work:
insert into table_A(ID, value1, value2)
select ID, value1, value2
from table_B
where table_B.ID <> table_A.ID
I am getting this error:
The multi-part identifier “table_A.ID” could not be bound
thanks
It does not work like that. You are not joining the tables in an insert statement. Use