Skip to content

How to get only duplicates entries in collection?

I want to get only those rows having same sku two or more times in collection using magento2?
how can i perform this in magento2 collection way