Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What would be the best way?
Message
De
08/08/2008 12:51:17
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01337566
Message ID:
01337572
Vues:
10
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform