I needed to purge database records to Archive Database. I have some 70 Tables. I am doing INSERT INTO <Database1>.<TABLE1>.. SELECT * FROM <Database2>.<TABLE1>...
Now it is required to check IF EXISTS for records. If the record exist in Archive Database for a table, no need to insert again.