Если новая такая запись в том, где условие в SQL, так что же возврат
IF (Expression )
BEGIN
-- If the condition is TRUE then execute the following statement
True Statements;
END
ELSE
BEGIN
-- If the condition is False then execute the following statement
False Statements
END
Ali Raza Arain