[SalesForce] Parent to Child SOQL

I have a Asset Table with Field Name like id and name.
I have a child relationship of the following Test_Result__c.System__c with field like resultTest1

Select Name, id , (Select something from the child) from Asset

How do you form a proper query to get for each Asset Name, id, the child resultTest1 ?

Best Answer

You need to give child relationship name in the subquery. Child relationship name can be found from the lookup in the child to Asset object. So your query will be like

Select Name, id , (Select Id,Name from ChildRelationshipName) from Asset