Select id, name, Parent__r.name, Parent__r.id from Child__c Select id, name, Parent__r.name,(SELECT id, name, amount__c FROM Children__r) from Parent__c
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter