🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JOIN and max query

#11096
From: DP
Date: Thu, 12 Dec 2002 16:59
17 lines
1541 bytes
> This is a corellated subquery.  It runs once for each line in the
> result set.  Hence, if the result set is large your query will be slow.
> You can optimize this with a SELECTable stored proc if this becomes a
> problem.

Excellent, it works as well ;-)

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.

Thanks

David
Technical Details
Message-ID: <3df8c053$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fr.usenet-edu.net!usenet-edu.net!bnewspeer01.bru.ops.eu.uu.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3df8712d@newsgroups.borland.com> <MPG.186277cf430b97fa98a3b9@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114a0e,54ae09d94673db75
X-Google-Attributes: gid114a0e,public
X-Google-ArrivalTime: 2002-12-12 09:14:21 PST
From: "DP" <daveperkins@_woo-hoo"-'#-bigfoot.com>
Newsgroups: borland.public.interbase.sql
References: <3df8712d@newsgroups.borland.com> <MPG.186277cf430b97fa98a3b9@newsgroups.borland.com>
Subject: Re: JOIN and max query
Date: Thu, 12 Dec 2002 16:59:19 -0000
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 217.155.64.69
Message-ID: <3df8c053$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1039712339 217.155.64.69 (12 Dec 2002 08:58:59 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fr.usenet-edu.net!usenet-edu.net!bnewspeer01.bru.ops.eu.uu.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail