Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

what is left outer join

Former Member
0 Likes
1,047

Hi Experts,

Tell me something about left outerjoin

Thanks in advance

Hi ,

check out it may help you

check this link

http://dev.mysql.com/doc/maxdb/en/bf/692940cbf2195de10000000a1550b0/frameset.htm

reward helpful answers ,

regards,

Venkat

Message was edited by:

venkata chalapathi

8 REPLIES 8
Read only

Former Member
0 Likes
1,025

A LEFT OUTER JOIN is one of the JOIN operations that allow you to specify a join clause. It preserves the unmatched rows from the first (left) table, joining them with a NULL row in the shape of the second (right) table.

Read only

Former Member
0 Likes
1,025

Hi surya

If a table C is formed from table A and table B using left outer join then table C contains both A n B values but only those rows of table A which has same value in table B in the key will b picked.

If table A doesnt find any matching value then that row is dropped n not shown in table C.

Read only

Former Member
0 Likes
1,025

Hi..

<b>Specifying Two or More Database Tables as a Left Outer Join</b>

In an inner join, a line from the left-hand database table or join is only included in the selection if there is one or more lines in the right-hand database table that meet the ON condition <cond>. The left outer join, on the other hand, reads lines from the left-hand database table or join even if there is no corresponding line in the right-hand table.

<b>SELECT...

...

FROM <tab> LEFT [OUTER] JOIN <dbtab> [AS <alias>] ON <cond>

<options>

...</b>

<tab> and <dbtab> are subject to the same rules and conditions as in an inner join. The OUTER addition is optional. The tables are linked in the same way as the inner join with the one exception that all lines selected from <tab> are included in the final selection. If <dbtab> does not contain any lines that meet the condition <cond>, the system includes a single line in the selection whose columns from <dbtab> are filled with null values.

In the left outer join, more restrictions apply to the condition <cond> than in the inner join. In addition to the above restrictions:

EQ or = is the only permitted relational operator.

There must be at least one comparison between columns from <tab> and <dbtab>.

The WHERE clause may not contain any comparisons with columns from <dbtab>. All comparisons using columns from <dbtab> must appear in the condition <cond>.

Client Handling

Read only

Former Member
0 Likes
1,025

Hi ,

check out it may help you

check this link

http://dev.mysql.com/doc/maxdb/en/bf/692940cbf2195de10000000a1550b0/frameset.htm

reward helpful answers ,

regards,

Venkat

Message was edited by:

venkata chalapathi

Read only

Former Member
0 Likes
1,025

left outer join will give all the possible combinations between tables even if the fields are empty inthe tables.

regards,

padma

Read only

Clemenss
Active Contributor
0 Likes
1,025

Surya,

please no not enter "left outer join" in the "Search Forum" field above. This could lead you to lots of information about your topic and would keep you from annoying people.

Regards,

Clemens

Read only

Former Member
0 Likes
1,025

Hi Surya..!!

if you are still not satisfied with the above answers...please find below a different explanation..

think there are two tables A and B.. and let us represent these 2 sets as two circles with an intersection area ( remember the mathematic diagram of A Union B and A intersection B )

now A is the left circle

B is the right circle.

Left Outer Join is :

The area covered by A ( including A^ B)

Right Outer Join is :

The area covered by B ( including A^ B)

Inner Join is :

only A ^ B

Cheers

Kesari