I'm using the IF statement like this:
ALTER proc spGetUserLevelCode
(
@strLoginID VARCHAR(20) = '', @outdata int output
) AS
if(select level_code
from org_person with(nolock)
where person_code = @strLoginID) = 'CA40'
as you can see, I extend CA50, CA60 like this adding behind 'CA40' or 'CA50' or 'CA60'
but there is an error
How can I use additional condition in IF condition?
SELECTreturns more than one row? What error did you get? Kindly post it..