Hello,I was wondering if someone can help me with this query. I am having issues with having duplicate a2.Id (ParentSFID) for a.Id (ChildSFID). Is there way that I can limit this so it finds only one of the ParentSFID for the ChildSFID.Thanks!Here's my query:SELECT a.SPID__c AS ChildSPID , a.Id AS ChildSFID , a.Name AS ChildName , a.Type AS ChildType , a2.SPID__c AS ParentSPIDDatabase , a2.Id AS ParentSFID , a2.Name AS ParentName , a2.Type AS ParentType FROM angie.dbo.SPRelationship AS sr WITH ( NOLOCK ) INNER JOIN dbo.Account AS a WITH ( NOLOCK ) ON sr.ToSPID = a.SPID__c INNER JOIN dbo.Account AS a2 WITH ( NOLOCK ) ON sr.FromSPID = a2.SPID__c WHERE a.Provider_Type__c = 'physician' AND a.Type <> 'deleted' AND a2.Type <> 'deleted'