I am joining 2 tables with a "left inner join" , The key combination I am using is promo_id and offer_Id.
Table A(Left) has 117500 rows, Table B(Right) has 1490 rows. But I get 274470 rows as output ?. I really dont understand?..... can anyone suggest what seems to be the problem here ?
Thnx
Join output problem
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 397
- Joined: Wed Apr 12, 2006 2:28 pm
- Location: Tennesse
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
There's no such thing as a left inner join. Are you using a left outer join, or an inner join?
An inner join will return a number of rows no greater than the smaller of the row counts of the two inputs. A left outer join will return a number of rows no greater than the number of rows in the left input.
Only a full outer join can return more rows than either of the input Data Sets (but see next paragraph).
The Join stage requires its inputs to be identically partitioned and sorted (based on the join key(s)). Without this condition being satisfied, you are likely to get spurious additional matches.
An inner join will return a number of rows no greater than the smaller of the row counts of the two inputs. A left outer join will return a number of rows no greater than the number of rows in the left input.
Only a full outer join can return more rows than either of the input Data Sets (but see next paragraph).
The Join stage requires its inputs to be identically partitioned and sorted (based on the join key(s)). Without this condition being satisfied, you are likely to get spurious additional matches.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Charter Member
- Posts: 822
- Joined: Sat Sep 17, 2005 5:25 pm
- Location: USA
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: