SELECT parent_object__c.Name, (SELECT Child_object__r.Name FROM Child_object__c ) FROM parent_object__c WHERE parent_object__c.Id IN (SELECT child_object_c.Id FROM child_object__c)
I am trying to create an inner join as per this example
SELECT Account.Name, (SELECT Contact.Name FROM contacts) FROM Account WHERE Account.Id IN (SELECT Contact.accountId FROM Contact)
Can anyone advise what I am doing wrong, please