| Article: |
More on JOINS | |
| Subject: | Outer Joins With Oracle | |
| Date: | 2004-04-15 01:43:31 | |
| From: | juby | |
|
Response to: Outer Joins With Oracle
|
||
| outer joins | ||
Showing messages 1 through 2 of 2.
-
Outer Joins With Oracle
2005-04-25 04:02:07 oraguy [Reply | View]
-
Outer Joins With Oracle
2005-10-05 03:41:55 outerjoins [Reply | View]
Hi,
I've used 2tables holding june month and august month data. In august month i've got (n+1) records whereas in june month n records. On using outer join for august and june month, i got same number of records as their corresponding tables.
select a.* from aug a, jun b where b.ASST_NO=a.ASST_NO(+); -- getting jun table record count
select a.* from aug a, jun b where b.ASST_NO(+)=a.ASST_NO; -- getting aug table record count





p.partid(+)=s.partid (this is giving all unmatched rows of s table which is on right so this should be called as right outer join)
By simply changing the positions, it becomes
s.partid=p.partid(+) (this is also going to give all unmatched rows from s table but since the s table is on left side, so this will be left outer join)
What i think is that, in oracle properietary joins using + operator, there is no concept of left and right outer join, an outer join is simply an outer join. the operator can be used only to get unmatched rows from a particular table.
Thanks