🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #43

Re: SQL OUTER JOIN giving unpredictable results

#43
From: Mark Berry
Date: Mon, 22 Feb 1999 00:00
25 lines
1660 bytes
Steve,

Steve Koterski wrote:
> What version of the BDE are you using? I seem to recall a problem in some
> earlier version using outer joins *and* filtering to just the non-matching
> rows like this. Does it work if you juxtapose the two tables and use a LEFT
> OUTER JOIN?

I get the same results with 4.51 and 5.01, RIGHT or LEFT OUTER JOIN.

This is happening when Contact1 has 1 record and Contact2 has 0.  If I
add one more record to Contact1, an interesting thing happens:  the SQL
Results grid correctly displays both orphaned records until I scroll
right to look at other columns.  Then only the first record is visible;
the second row disappears (turns gray), although the indicator columns
still shows two rows.  If I try to scroll up, I see "1 of 2" briefly in
the upper right corner.  When I scroll back to the left, the second row
still is not visible.

Any ideas?  What are my alternatives?  Is the nested SELECT suggested by
Romain the way to go?  Why is that so slow?

Thanks very much for your help,

Mark Berry
Technical Details
Message-ID: <36D1C1A3.FD15537E@nospam.mcbsys.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36CE28AB.704C343B@nospam.mcbsys.com> <36d799c1.4949355@forums.inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,3dc8d9196f7bc07d
X-Google-Attributes: gidff5a1,public
From: Mark Berry <markb@nospam.mcbsys.com>
Subject: Re: SQL OUTER JOIN giving unpredictable results
Date: 1999/02/22
Message-ID: <36D1C1A3.FD15537E@nospam.mcbsys.com>
X-Deja-AN: 447212877
Content-Transfer-Encoding: 7bit
References: <36CE28AB.704C343B@nospam.mcbsys.com> <36d799c1.4949355@forums.inprise.com>
Content-Type: text/plain; charset=us-ascii
Organization: MCB Systems
Mime-Version: 1.0
Reply-To: markb@nospam.mcbsys.com
Newsgroups: borland.public.vdbase.data.sql