+ Start a Discussion

How to retrive records from child object which is associated with Parent when bith in Master rel

Contact is Master and policy__c is detailed. i want to retrive policy records which is associated with contact. need SOQL querry for this


SELECT Id, (SELECT Id FROM ChildRelationshipName__r) FROM Contact;