Suppose I have a table with three columns and i want to take all rows where at least one column value is not null , right now i am using coalesce()
below way for null checking and it is working fine
with Test_name AS(
select null as id , null as f_name , null as l_name
union ALL
select 1,'fname1', null
union ALL
select null,null,null
) select tn.* from Test_name tn where coalesce(id,f_name,l_name) is not null
expected output and which gives me my query
1,'fname1', null
I am wonder is there any more better way to do this null checking