I use the following code but the it doesnot return any thing,
declare @test varchar(50) ;
declare @result varchar(10) ;
set @result = 'A';
IF(@test = 'A')
BegIN
select count(*) from users where u_id = 15
END
else if (@test == 'B')
BEGIN
END
the query return results select count(*) from users where u_id = 15
any idea how to solve that
Best regards
Can you try this first?