We need to perform INSERT, UPDATE, and DELETE operations on a target table by matching with records from the source…