I have a temp table with some columns containing numbers. I want to use the columns in the temp table and compare them WITH an IF statement.
...
INSERT INTO #tmp
EXEC [p_GetComplete] @Car_ID
IF Col1 + Col2 = Col3
BEGIN
PRINT 'OK'
END
ELSE
BEGIN
PRINT 'NO'
END
...