IF EXISTS(SELECT TOP 1 * FROM Transactions WITH (NOLOCK) WHERE OriginalGlobalTransactionNumber IS NULL)
  UPDATE Transactions SET OriginalGlobalTransactionNumber = GlobalTransactionNumber WHERE OriginalGlobalTransactionNumber IS NULL