I have data like below,

```
Document#                Name
__________________________________
Doc1                     John
Doc1                     John
Doc1                     Peter

```

I need to check whether any document is related with different Person. For eg., in our case doc1 is referenced for both the person, John and Peter. How to get this?