Yes, my bad, isnull not ifnull

-----Original Message-----
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 4:24 PM
To: CF-Talk
Subject: RE: Another SQL statement question...


> It's off-topic, but I know people here are experienced with SQL, so...
>
> I am using SQL 7.0 and CF 4.5.  I am trying to combine two ntext field
> columns to one field in a query, but I have a problem when one of
> the fields contains 'NULL' value.  I am trying:
>
> SELECT TextID, TextColumn1 + TextColumn2 AS AllTextColumns
> FROM Table1
>
> But when either TextColumn1 or TextColumn2 has the 'NULL' value, the
> resulting column, AllTextColumns, shows as empty even if the other column
> has a text string in it.  Is there a way to prevent this?

Use isNULL()

isNULL(TextColumn1,'')

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to