General information
Forum:
Microsoft SQL Server
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only