In SSMS right click on the table, use script as SELECT. Then scroll down to the Country column and change is to
ISNULL(Country, 'Unknown') as Country
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a table which have columns Country, Region and Sales. Actually I have 70 columns in my table.Its just a sample data.
Now my requirement is I need to create a query which will select all columns from the table, but I have to replace country value as Unknown if it is null.
Could any one please help how to do
In SSMS right click on the table, use script as SELECT. Then scroll down to the Country column and change is to
ISNULL(Country, 'Unknown') as Country
Hi @Anonymous ,
I need to create this inside a query .
Could you please help