UPDATE TB_LINKED_API_KEY SET DeletedAt = GETDATE(), UseYn = 0 WHERE ServerId IN (SELECT ServerId FROM TB_LINKED_SERVER WHERE SystemId = @systemId)