Article View: borland.public.interbase.sql
Article #555Re: CASE with test on null field
From: Adalberto Baldini
Date: Thu, 20 Sep 2007 07:33
Date: Thu, 20 Sep 2007 07:33
16 lines
1579 bytes
1579 bytes
Bill Todd wrote: > When c.Descr is null you are concatenating it with a.desmov. Null > concatenated with anything is null. Add a WHEN c.Descr IS NULL clause > to the case statement and return a.desmov just as you do when c.Descr > is an empty string. > > Use of NULL , IS NULL, (IS NULL) are not allowed in Case statement. "The CASE expression is a conditional value expression that consists of a list of value expressions, .." It only accepts value. Adalberto
Technical Details
Message-ID:
<46f2225c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46f01a4a@newsgroups.borland.com> <46f02308$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,fe8d0aeed0af284e X-Google-Attributes: gid114a0e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 20 Sep 2007 09:33:49 +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: Re: CASE with test on null field References: <46f01a4a@newsgroups.borland.com> <46f02308$1@newsgroups.borland.com> In-Reply-To: <46f02308$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 87.30.78.40 Message-ID: <46f2225c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1190273628 87.30.78.40 (20 Sep 2007 00:33:48 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1422