In the below link there is a solution for comparing two data frames and extracting the duplicate entries Please check the link
But it only provides the one correspond