'Using Coalesce, How do I not display null values?

I am using the following query in my database:

Select ID, coalesce(FName,MName, LName, 'Missing Name') as 'NameToCall', [Phone Number] from Emp

The results show: Query results

I want the ID 6 to not display when the query executes. How do I do it?

I've so far tried taking the column named

FName

outside of the colaesce but, it only displays the whole FName column



Solution 1:[1]

select id, phone from emp where coalesce(FName,MName, LName) is not null

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 tinazmu