• Now I agree with your approach.

    Please add a PRINT statement in IF block for debugging and post the results.

    IF @@ROWCOUNT = 2