Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

How to find Duplicate Records with more than one attribute as duplicate

Nisha30
Mega Sage

Hello Experts,

 

we can find out duplicate records for a specific table. Thats ok.

However can anyone assist how can we meet these 

 

1. we want to search from tables where 'principal Class= TRUE' in Table cmdb_class_info 

 

2. Also attributes for duplicate consideration = NAme, Serial Number, vm_instance_uuid , vcenter_uuid

 

3. I assume when output is displayed will be bit messy how can i see them in a excel or any other best way.

 

Please suggest if anyone has done or best idea to script this ?

 

Thanks

1 REPLY 1

Ankur Bawiskar
Tera Patron

@Nisha30 

see my blog and enhance as per your requirement

Search for Duplicates & Delete Based on 2 Columns 

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏