Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning Spaces instead of null
Message
From
14/04/2012 12:02:29
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
14/04/2012 11:51:59
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01541520
Message ID:
01541521
Views:
50
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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform