You need "get the record for the Viridian City Gym and all its trainers". But A answer returns all trainers without "record for the Viridian City Gym "
A.
This query fetches all Trainer__c records where the related Gym__c record has a Name field equal to "Viridian City Gym". The "__r" notation is used to traverse the relationship from the Trainer__c object to the Gym__c object. "Gym__r.Name" is used to reference the Name field on the related Gym__c object.
Sorry but, based on how the question is written, I don't agree ... 'Which SOQL query will get the record for the Viridian City Gym and all its trainers?' It is asked to retrieve the record for the Viridian City Gym AND all its trainers. With A, you only get the trainers for the Gym and not the Gym record :)
upvoted 3 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
83f117f
7 months agoSanjeevOnForce
1 year agoirina_735
1 year, 2 months agowlthorn
1 year, 7 months agoEnvy_Pouki
1 year, 2 months ago