Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning Spaces instead of null
Message
De
14/04/2012 12:02:29
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
14/04/2012 11:51:59
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01541520
Message ID:
01541521
Vues:
51
This message has been marked as the solution to the initial question of the thread.
look at coalesce() or isnull()

select isnull(a.fieldname,'') as myfield

>I'm joining table A - always present with table B - not always present - in a query that returns some columns from A and one column from B- let's called it bcolumn.
>I'd like bcolumn to contain the value from table B with there is a row in table B and spaces if there is no row in table B, rather than nulls.
>
>I've hit a creative wall today.
>Help!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform