Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
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
2 weeks agoSanjeevOnForce
6 months agoirina_735
7 months, 3 weeks agowlthorn
1 year, 1 month agoEnvy_Pouki
8 months ago