I am doing a SELECT statement in a SQL Server 2008 database.
SELECT Name, DOB, Address1, Address2, City, State, Zip FROM Users
However, if any of the above columns is empty for a specific row, I want to put the value NA in the column.
This usually returns:
SMITH^JOHN, 1/1/1980, 5140 N 1ST ST, NULL, NOWHERE, WA, 98221 DOE^JANE, 5/5/1970, NULL, NULL, NULL, NULL, NULL
I want to return:
SMITH^JOHN, 1/1/1980, 5140 N 1ST ST, NA, NOWHERE, WA, 98221 DOE^JANE, 5/5/1970, NA, NA, NA, NA, NA
However, I do not want to update the database. I just want the SELECT return this static value whenever the result is NULL .