Inner Join not working

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
praburaj
Premium Member
Premium Member
Posts: 133
Joined: Thu Jun 30, 2005 1:26 am
Location: philippines

Inner Join not working

Post by praburaj »

Hi All,

My Source is ODBC database and my reference and target table is DB2.

In source and reference table have a column like SITE_DESC datatype is a varchar.

I have verified the data seperately in each database. Identified some common records between tehm.

But When I was doing a inner join based on SITE_DESC between these two database, none of the records are not loaded to the target table.

But in the reference table if I keep some where condition clause,then some records are loading into the target table.

I really dont know the reason why inner join condintion is not working without where clause.

Any help is really appreciated.
prabakaran.v
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Re: Inner Join not working

Post by SURA »

My understanding is , you are using Join in DS to Joining two columns.

What is your source data base?

Is it case sensitive?

What you are seeing in the data base canvas may not be the real truth!

May be some some unprintable characters may also create these kind of issue
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Show us the SQL query that you are using.

A Join condition must be specified either in the FROM clause or in the WHERE clause (SQL 101).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
harishkumar.upadrasta
Participant
Posts: 18
Joined: Tue Dec 25, 2012 10:39 pm
Location: Detroit,MI

Post by harishkumar.upadrasta »

Please check if the comparision is char to varchar as char padds extra spaces or pad characters which can fail the condition checks....
Harish
ds_8112
Participant
Posts: 8
Joined: Thu Dec 27, 2012 11:28 am
Location: India

Post by ds_8112 »

try using a trim() for column SITE_DESC in both your source and reference sql query
Post Reply