I have two tables source and destination with same table schema in two different databases. Only data is different.
Write a script to copy data from source to target. Id is a Primary Key. There should be no duplication of Id.
TargetTable
Id Prouct Rate
1 Tea 10
2 Coffee 20
3 Milk 30
1 Tea 10
2 Coffee 20
3 Milk 30
SourceTable
Id Prouct Rate
1 Sugar 25
2 Salt 15
1 Sugar 25
2 Salt 15


Vasanth NatarajanRank #3,352 · 429 reputationPosted Jun 22, 2016, 6:38 AM EDT
Saurabh34 reputationPosted Jun 22, 2016, 9:43 AM EDT
Karthik ElumalaiRank #544 · 4.5K reputationPosted Jun 22, 2016, 6:51 PM EDT