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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dealing with NULLs in Select

Status
Not open for further replies.

Azita79

Programmer
Jan 30, 2003
41
US
Hi All,

In my tblInstaller I have 3 fields that I wana return as one
string. But when any of 3 is NULL the whole string retruns NULL

SELECT (InstallerName + ' , ' + Dba + ' , ' + BusName) as 'Name'
From tblInstaller

Any help would be greatly appreciated

Azita

 
hi,

try this

SELECT (Isnull(InstallerName,'') + ' , ' + isnull(Dba,'') + ' , ' + isnull(BusName,'')) as 'Name'
From tblInstaller


Sunil
 
Thank you so much Sunil

It worked great !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top