what is the output of this code?
        Posted  
        
            by user329820
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user329820
        
        
        
        Published on 2010-04-30T14:31:37Z
        Indexed on 
            2010/04/30
            14:37 UTC
        
        
        Read the original article
        Hit count: 198
        
Hi,I have wriiten a part of code for you and I want to know the output ,I need your help because there is not any body for helping me also I think that the out put is A ,is this correct? thanks.
declare @v1 varchar(20),@v2 varchar(20)
select @v1 = 'NULL'
if @v1 is null and @v2 is null
select 'A'
else
select 'B'
© Stack Overflow or respective owner