Which SOQL query will get the record for the Viridian City gym and it’s trainers?

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 it’s trainers?
A . SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name . Viridian City Gym’
B . SELECT Id, (SELECT Id FROM Trainer_c) FROM Gym_c WHERE Name – Viridian City Gym’
C . SELECT ID FROM Trainer_c WHERE Gym__r.Name – Viridian City Gym’
D . SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name – Viridian City Gym’

Answer: A

Latest PDI Dumps Valid Version with 191 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
2 Comments
Inline Feedbacks
View all comments
MINKI
MINKI
2 years ago

SELECT Id, (SELECT Id FROM Trainers__r) FROM Gym__c WHERE Name =’Viridian City Gym’

Sergio
Sergio
3 years ago

Please, write the options well

A . SELECT Id, (SELECT Id FROM Trainers__r) FROM Gym_C WHERE Name = ‘Viridian City Gym’
B . SELECT Id, (SELECT Id FROM Trainer__c) FROM Gym_c WHERE Name = ‘Viridian City Gym’
C . SELECT ID FROM Trainer_c WHERE Gym__r.Name = ‘Viridian City Gym’
D . SELECT Id, (SELECT Id FROM Trainers__c) FROM Gym_C WHERE Name = ‘Viridian City Gym’