🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JOIN and max query

#11100
From: Craig Stuntz TeamB
Date: Thu, 12 Dec 2002 17:16
21 lines
1754 bytes
In article <3df8c053$1@newsgroups.borland.com>, "DP" <daveperkins@_woo-
hoo"-'#-bigfoot.com> says...
> 
> I don't really understand why
> 
>   (B1.A_ID IS NULL) OR
> 
> is included, it seems to ensure that the outer join works, without it, the
> outer join works as an inner join.
> 
	You said you wanted a record whether or not there were matching 
records in B.  If you don't want this, drop the clause quoted and relace 
the LEFT OUTER JOIN with an INNER JOIN.

	-Craig

-- 
Craig Stuntz [TeamB] � Vertex Systems Corp. � Columbus, OH
Delphi/InterBase Weblog : http://delphi.weblogs.com
InterBase Perf. Monitor : http://delphi.weblogs.com/IBPerformanceMonitor
InterBase PLANalyzer 1.1: http://delphi.weblogs.com/IBPLANalyzer
Technical Details
Message-ID: <MPG.18628e86c833192498a3c0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3df8712d@newsgroups.borland.com> <MPG.186277cf430b97fa98a3b9@newsgroups.borland.com> <3df8c053$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 114a0e,54ae09d94673db75
X-Google-Attributes: gid114a0e,public
X-Google-ArrivalTime: 2002-12-12 09:24:05 PST
From: Craig Stuntz [TeamB] <cstuntz@nospamplease.com  (but use vertexsoftware to email)>
Newsgroups: borland.public.interbase.sql
Subject: Re: JOIN and max query
Date: Thu, 12 Dec 2002 12:16:38 -0500
Message-ID: <MPG.18628e86c833192498a3c0@newsgroups.borland.com>
References: <3df8712d@newsgroups.borland.com> <MPG.186277cf430b97fa98a3b9@newsgroups.borland.com> <3df8c053$1@newsgroups.borland.com>
Organization: Vertex Systems Corporation
X-Newsreader: MicroPlanet Gravity v2.60
NNTP-Posting-Host: 65.86.87.242
X-Trace: newsgroups.borland.com 1039713407 65.86.87.242 (12 Dec 2002 09:16:47 -0800)
Lines: 21
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail