The function of MERGE is equivalent to combining the update, insert, and delete statements into one statement. If you cannot use merge, you can split the statement into separate update, insert, and delete statements.
There are examples in the post I just answered, please refer to:
Alternative to MERGE for Remote Queries - UPDATE IF EXISTS OR INSERT RECORD
Regards
Echo
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.