Hello,
What SQL query should I use, in order to copy records from one table to another, both of the same schemas, in such way that only records that don’t already exist in the destination table will be copied?
For example:
Table A – Destination table
******
Col1 Col2 Col3
**** **** ****
Aaa 111 !!!
Bbb 222 @@@
Ccc 333 ###
Ddd 444 $$$
Eee 555 %%%
Table B – Source table
******
Col1 Col2 Col3
**** **** ****
Bbb 222 @@@
Ddd 444 $$$
Fff 666 ^^^
Ggg 777 &&&
And the result should be:
Table A
******
Col1 Col2 Col3
**** **** ****
Aaa 111 !!!
Bbb 222 @@@
Ccc 333 ###
Ddd 444 $$$
Eee 555 %%%
Fff 666 ^^^
Ggg 777 &&&
Thanks.