🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Join - understand strange results

#377
From: Adalberto Baldini
Date: Fri, 25 Apr 2008 09:24
19 lines
1892 bytes
Adalberto Baldini wrote:

I got the reason, SQL return are Ok. Sorry for this post.

> 
> select csoc, abinp, ambname, a_abiqt, au_inpaut , au_celur
> from  AB_USRSOCINP (:UTENTE, :SOC_SEL, :ESER)
> where (ABINP = '' ) and (A_ABIQT = '') and
>       (au_inpaut = '1') or (au_celur = '1')
> 
> returns 2 records :
> DEM1, '', name, '', 1, 0
> DEM1, ABIT, name, ABIT, 1,1      ??????  ABINP <> ''
> 
> I agree that where clause in 2nd example is not well built but why I get 
>  record that doesn't match test ?
> 
> Thanks
> Adalberto
Technical Details
Message-ID: <4811a33c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <480c85b4$1@newsgroups.borland.com> <480ca9f3$1@newsgroups.borland.com> <480e09f4$1@newsgroups.borland.com> <480f8e10$1@newsgroups.borland.com> <4810a7dd@newsgroups.borland.com> <481198bf@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,11ad783c403646e4
X-Google-Attributes: gid114a0e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 25 Apr 2008 11:24:14 +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: Join - understand strange results
References: <480c85b4$1@newsgroups.borland.com> <480ca9f3$1@newsgroups.borland.com> <480e09f4$1@newsgroups.borland.com> <480f8e10$1@newsgroups.borland.com> <4810a7dd@newsgroups.borland.com> <481198bf@newsgroups.borland.com>
In-Reply-To: <481198bf@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Antivirus: avast! (VPS 080424-0, 24/04/2008), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 83.77.163.88
Message-ID: <4811a33c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1209115452 83.77.163.88 (25 Apr 2008 02:24:12 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
X-Original-Bytes: 1725