Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What would be the best way?
Message
From
08/08/2008 12:51:17
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01337566
Message ID:
01337572
Views:
11
This message has been marked as the solution to the initial question of the thread.
Maybe something like
SELECT CASE Marital_Status IS NULL OR Marital_Status =SPACE(1) then "M" Else Marital_Status end from <your table>
>Hi everybody,
>
>I have a field in my database for a Marital Status. I want to return 'M' if it's null or empty and the status otherwise. What would be the best implementation?
>
>Thanks in advance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform