declare @t table (asa varchar(10))
insert @t select null
insert @t select 'abc'
select case when asa is null then 'N' else 'Y' end from @t
/*
----
N
Y(2 行受影响)
*/