Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Mahamed_Qlik
Specialist
Specialist

duplicate records in join

Hi 

 

I have two table with same ID field common between them as below:

BILL:

BILL_ID

10001

 

PAYMENT:
BILL_ID

10001

 

whenever I join these two tables I am getting 2 records irrespective of other columns in both table.

I have used only BILL_ID field and joined then table still I am getting 2 records.

 

BILL:

Load BILL_ID From BILL;

left join (BILL)

Load BILL_ID From PAYMENT;

 

Resulting table:

BILL:

10001

10001

 

Kindly assist;

 

Regards,

Mahamed

 

 

Labels (1)
2 Replies
BrunPierre
Partner - Master
Partner - Master

I recommend using ApplyMap Don't join - use Applymap instead, but providing more sample data(fields) might help explore alternatives.

vinieme12
Champion III
Champion III

1) Trim any leading/trailing spaces    TRIM(BILL_ID)

2) check if the relationship between these two tables is actually 1-1  or 1-n 

for example are there multiple payments rows in the payment table or multiple rows in BILL table for same BILL_ID

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.