Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I wrote Sql Server query for northwind

I want output without null values

What I have tried:

use Northwind
select productid, productname,
case
when unitsinstock >100 then 'no order'
when unitsinstock between 1 and 10 then 'yes order'
end AS reorder_need
from Products
Posted
Updated 1-Dec-22 8:13am

1 solution

Add an ELSE clause: SQL CASE Expression[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900