Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenations Firstname+middlename+last name

Status
Not open for further replies.

dwight1

IS-IT--Management
Aug 22, 2005
176
US
Hi,

I have concatenated the names in sql as follows

[BFirstname] + ' ' + [bmiddlename] + ' ' + [blastname] AS Borrower1

and it works good when we have the middlename, but if we do not have the middlename it just gives blank.


Can any one advise how do i make it work in case of a null value in the concatenation.

Thank you
Dwight
 
Code:
[BFirstname] + ' ' + IsNull([bmiddlename],'') + ' ' + [blastname] AS Borrower1
 
Thank you very much. It was very helpful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top