Salesforce Certified Platform Developer 1 (SP25) CRT-450 Question # 43 Topic 5 Discussion

Salesforce Certified Platform Developer 1 (SP25) CRT-450 Question # 43 Topic 5 Discussion

CRT-450 Exam Topic 5 Question 43 Discussion:
Question #: 43
Topic #: 5

A custom object Trainer__c has a lookup field to another custom object Gym__c.

Which SOQL query will get the record for the Viridian City Gym and all it's trainers?


A.

SELECT ID FROM Trainer_c WHERE Gym_r.Name = 'Viridian City Gym'


B.

SELECT Id, (SELECT Id FROM Trainer_c FROM Gym_c WHERE Name = ‘Viridian City Gym"


C.

SELECT Id, (SELECT Id FROM Trainers _r) FROM Gym_c WHERE Name = ‘Viridian City Gym'


D.

SELECT Id, (SELECT Id FROM Trainers _c) FROM Gym_c WHERE Name = 'Viridian City Gym'


Get Premium CRT-450 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.