| Author |
inner join Vs outer join
|
kri shan
Ranch Hand
Joined: Apr 08, 2004
Posts: 1303
|
|
|
What is the difference between inner join and outer join ?
|
 |
James Swan
Ranch Hand
Joined: Jun 26, 2001
Posts: 403
|
|
- inner joins only returns rows that "match" in both tables - outer joins return "all" rows from 1st table, and null valued columns in rows that don't exist in the 2nd table for example, imagine we have this data, also for each query, we join them on column "id": Also to note, the SQL syntax for outer joins is database vendor specific, Oracle used different notation from say SQL Server.
|
 |
kri shan
Ranch Hand
Joined: Apr 08, 2004
Posts: 1303
|
|
|
In Oracle outer join is defined as * symbol. in Sybase outer join is defined as + symbol. What is the outer join symbol for DB2 ?
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
Kri,
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: inner join Vs outer join
|
|
|