🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #532

Re: Concatenation

#532
From: Craig Stuntz TeamB
Date: Fri, 16 Nov 2007 15:20
16 lines
1728 bytes
SimonW wrote:

> Alain wrote:
> > Hi,I wish to concatenate two fields in oneSELECT (lname + ', ' +
> > fname) AS  Name from clientsThe above is not working ! How to
> > ?Thanks
> SELECT (lname || ', ' || fname) AS Name

	Note that if either column is NULL then this returns NULL. Use CASE or
COALESCE to write a more robust solution.

-- 
Craig Stuntz [TeamB] � Vertex Systems Corp. � Columbus, OH
  Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Please read and follow Borland's rules for the user of their 
  server: http://support.borland.com/entry.jspa?externalID=293
Technical Details
Message-ID: <473dc35e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <473d7b05@newsgroups.borland.com> <473d7d36$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,36e9dbfd49323fb6
X-Google-Attributes: gid114a0e,public,usenet
X-Google-Language: ENGLISH,ASCII
From: "Craig Stuntz [TeamB]" <craig_stuntz@nospam.please [a.k.a. acm.org]>
Subject: Re: Concatenation
Newsgroups: borland.public.interbase.sql
References: <473d7b05@newsgroups.borland.com> <473d7d36$1@newsgroups.borland.com>
Organization: Vertex Systems Corporation
User-Agent: XanaNews/1.18.1.9
X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ:0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 64.199.116.234
Message-ID: <473dc35e$1@newsgroups.borland.com>
Date: 16 Nov 2007 08:20:46 -0700
X-Trace: newsgroups.borland.com 1195230046 64.199.116.234 (16 Nov 2007 08:20:46 -0700)
Lines: 16
X-Authenticated-User: cstuntz
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail