[Fwd: Re: Quick question re outer joins]
- From: Nuno Souto <dbvision@xxxxxxxxxxxxxxx>
- To: oracle-l@xxxxxxxxxxxxx
- Date: Sat, 24 Jul 2004 01:22:11 +1000
Powell, Mark D apparently said,on my timestamp of 24/07/2004 12:32 AM:
> Looking back at the thread I think several of the posts are actually in
> agreement but what is/was meant by "extra rows" is actually the problem.
Bingo. Thanks for explaining it better than I could.
> One of, if not the first post on the thread, asked if I read it correctly if
> the row set returned by the outer join should match the count returned in A.
> The answer is not always as the join to B could cause additional rows to
> appear in the result set when there are multiple rows present in B for the
> join condition.
That would normally not be the case if B is a reference/lookup table.
It would presumably not contain multiples of the join condition.
In the example I gave later on, JOBS would not have duplicate job rows.
If it does, then yes: more rows.
> An outer join will give you back the inner join plus those
> rows in A that do not have a maching row in B where A is the table where we
> always want to return a row from in the result set.
Which one is this one? Left or Right? Can never figure this out...
While I'm here:
Assuming no duplicates on join condition,
isn't an outer join between A and B
where a.id = b.id(+)
exactly the same as:
select (list of columns),
(select b.name from B where b.id = a.id) B.name
from A;
Ie, using a subquery in the column list we obtain
precisely the same result?
--
Cheers
Nuno Souto
in sunny Sydney, Australia
dbvision@xxxxxxxxxxxxxxx
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
- Follow-Ups:
- Re: [Fwd: Re: Quick question re outer joins]
- From: Jonathan Gennick
Other related posts:
- » [Fwd: PeopleSoft Financials 9.0 Upgrade Questions]
- » (no subject)
- » [no subject]
- » [Fwd: Hotsos Symposium Room Block Expires Feb. 23]
- » [no subject]
- » Re:
- » [Fwd: Re: Partitioning problems - Oracle 8.1.7.4]
- » **
- » [no subject]
- » [no subject]
- » [no subject]
- » [Fwd: Your e-mail message was blocked]
- » [no subject]
- » RE:
- » (no subject)
- » [no subject]
- » [no subject]
- » [no subject]
- » [no subject]
- » [no subject]
- » [no subject]
- » [no subject]
- » (no subject)
- » [no subject]
- » [Fwd: Re: Anyone running JFS2 Concurrent I/O with 9i on AIX 5.2?]
- » (без темы)
- » [Fwd: Re: Useful Oracle books]
- » Re:
- » (no subject)
- » Re: (no subject)
- » RE: (no subject)
- » RE: (no subject)
- » Re: (no subject)
- » [no subject]
- » RE:
- » RE:
- » RE:
- » [Fwd: RE:]
- » RE:
- » RE:
- » RE:
- » RE:
- » RE:
- » [Fwd: Re: Oracle 10g RAC on Linux - hardware confusion #@$!]
- » (no subject)
- » [Fwd: Re: I may never see this again. SGA]
- » [Fwd: RE: Has the Lists 'Mission Statement' Changed???]
- » [Fwd: Re: IDE for Oracle database]
- » [Fwd: RE: Job Scheduling Tool]
- » (no subject)
- » Re: (no subject)
- » [Fwd: Re: System Statistics and the CBO]
- » `
- » (no subject)
- » [Fwd: Re: Quick question re outer joins]
- » [Fwd: more on 'high cpu...']
- » Re:
- » Re:
- » [Fwd: Re: ANNOUNCE: Advanced DBI tutorial slides]
- » (no subject)
- » RE: (no subject)
- » Re: (no subject)
- » RE: (no subject)
- » [no subject]
- » Re:
- » RE:
- » RE:
- » RE:
- » [Fwd: Re: 10046 trace - unaccounted for time]
- » (no subject)
- » [no subject]
- » RE:
- » RE:
- » [stellr: Re: SUSE or Red Hat]
- » [Fwd: Re: Ora Doc in PDA]
- » [Fwd: Re: BAST in RAC]
- » (no subject)
- » [Fwd: Memorial Services for Stan Yellott]
- » [Fwd: Re: Altering dymanic SGA parameters and ORA-00376]
- » 試過跟學姊一起洗香香ㄇ....(限) - dba1 mcc
- » Re: - David Cheyne
- » Re: - Riyaj Shamsudeen
- » [Fwd: passwords in different instances] - Ingrid Voigt
- Re: [Fwd: Re: Quick question re outer joins]
- From: Jonathan Gennick