if @somevarialbe = 'A' BEGIN Select something from table whre condition = 'A' END ELSE BEGIN IF @othervariable = 'B' BEGIN Select something from table whre condition = 'B' END ELSE BEGIN Select something from table whre condition = 'C' END END
SELECT something from table where condition = @somevariable
condition
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)