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: 
qliklearnervir
Creator
Creator

duplicate removal

Hi,

we have some data  like below;

ID  Email

1   abc.email.com

2   abc.email.com

3    xyz.email.com

data having duplicate emailids, that i want to remove....kindly suggest the possible ways in script.

2 Replies
MK_QSL
MVP
MVP

temp:

Load * Inline

[

  ID,  Email

  1,   abc.email.com

  2,   abc.email.com

  3,   xyz.email.com

];

Left Join(temp)

Load ID, Email, if(Email=Previous(Email),1,0) as Flag Resident temp

order by ID;

NoConcatenate

Final:

Load ID, Email Resident temp

Where Flag = 0;

Drop Table temp;

Digvijay_Singh

table:

load * inline [

ID,  Email

1,   abc.email.com

2,   abc.email.com

3 ,   xyz.email.com ];

NoConcatenate

Load min(ID) as ID, Email resident table group by Email;

drop table table;