Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How can I hide null records for selected value?

$
0
0

I have table with the following data:

Product  Cost
Orange   Null
Apple     2
Carrot    2
Banana  Null
Banana    3


I would like to display all records except for the Banana with the null value. The result should show:

Product  Cost
Orange   Null
Apple     2
Carrot    2
Banana    3

The orange with null value should be displayed.

I appreciate any help.

Thanks in advance.



Viewing all articles
Browse latest Browse all 23857

Trending Articles