Article View: borland.public.interbase.sql
Article #640CASE with test on null field
From: Adalberto Baldini
Date: Tue, 18 Sep 2007 18:34
Date: Tue, 18 Sep 2007 18:34
20 lines
1261 bytes
1261 bytes
I always get null result with : case c.descr when '' then a.desmov else a.desmov ||' '|| c.Descr end as Descreg when c.descr is null and a.desmov is not null ? I tried : case (Cast(c.descr as varchar(60))) when '' then a.desmov else a.desmov ||' '|| c.Descr end as Descreg but same result. Thanks Adalberto Baldini
Technical Details
Message-ID:
<46f01a4a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,fe8d0aeed0af284e,start X-Google-Attributes: gid114a0e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 18 Sep 2007 20:34:54 +0200 From: Adalberto Baldini <finman@swissonline.ch> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.interbase.sql Subject: CASE with test on null field Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 87.30.78.40 Message-ID: <46f01a4a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1190140490 87.30.78.40 (18 Sep 2007 11:34:50 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail