I have the following conditional sql statement, which works.. but I have an empty statement in the if part... I want to negate it so that I can just use the if part with the logic
IF @WorkPrescribed = 1 and (@DefectNo1 = @WorkPrescribedDefectNo or @DefectNo2 = @WorkPrescribedDefectNo or @DefectNo3 = @WorkPrescribedDefectNo or @DefectNo4 = @WorkPrescribedDefectNo)
BEGIN
-- I don't want this at all.. only reason I have this is so I can have the else condition
END
else
BEGIN
--My current logic is all here
END
so I just want to know how to negate what I have, so I can do everything just with an If, rather than use the else
Thanks