select * from tablename where RTRIM(ISNULL(id, '')) = '' or RTRIM(ISNULL(name, '')) = '' OR RTRIM(ISNULL(sal, '')) = ''
RTRIM(ISNULL(abc, '')) = ''
select * from tablename where id=' 'select * from tablename where sal = ' '-- is actually select * from tablename where id=0select * from tablename where sal = 0
select * from #testtablewhere id is null or name is null or sal is nullunion allselect * from #TestTablewhere name =''
select * from tablename where id IS NULL or RTRIM(ISNULL(name, '')) = '' OR sal IS NULL