Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
renjithpl
Specialist
Specialist

extract duplicate data

Hi All,

i have a table like below

Sl No.Matter IDMatter NameFirst NameLast NameMailID
1447306abcLenindesothalenin.desotha.idea.com
2447306abcMartinhampmartin.hamp.idea.com
3447307YYYLenindesothalenin.desotha.idea.com

there will be duplicate/same mailid's for different MatterID,

I want to find where the mail ids are getting duplicates and get those Matterids.

Finally my output table should look like below:

Matter IDMatter NameMailID
447306abclenin.desotha.idea.com
447307YYYlenin.desotha.idea.com

Any help?

1 Solution

Accepted Solutions
Not applicable

Simulated your case in the attachement. Hope this helps. Some syntax error in the above post

Regards,

Kiran.

View solution in original post

4 Replies
Not applicable

Renjith,

You need to have a logic which ones to remove. But this is how its done:

Temp:

Load SlNo.,MatterID,MatterName,FirstName,LastName,MailID, autonumber(MatterID,MailID) as MatterMailID from ...;

Join(Temp)

Load MatterID,Min(MatterMailID),1 as IncludeFlag Resident Temp;

Final:

Load SlNo.,MatterID,MatterName,FirstName,LastName,MailID as FilteredMailID Resident Temp where IncludeFlag =1;

Autonumber will generate a serial number for each of the combinations of multiple fields.

Regards,

Kiran.

renjithpl
Specialist
Specialist
Author

getting some error..

Not applicable

Simulated your case in the attachement. Hope this helps. Some syntax error in the above post

Regards,

Kiran.

Not applicable

Hi ,

temp:
LOAD [Sl No.],
     [Matter ID],
     [Matter Name],
     [First Name],
     [Last Name], if(exists(MailID),'Repeating','Not repeating') as Check,
      MailID
   
FROM
[...\Book1.xls]
(biff, embedded labels, table is Sheet1$) ;

Left join
Load
MailID,

1 as Flag
resident temp where Check='Repeating';

Final:
noconcatenate
Load * resident temp ;


drop table temp;
drop field Check;

In layout you can suppress rows which have flag as null .