There is a course object with a marketing location lookup field. Marketing location object has state and country fields.
how could i query from the course object with the marketing location objects field?
QueryResult qr = binding.query("select CourseName__c,
(select State__c,Country__c from Marketing_Location__c) from Course__c")
It’s not work…..
I’m new to salesforce, so any help, thanks.
When queryign parent you use direct notation, not a subquery sicne there can be only one parent
also, custom object names always use __c suffix (two underscores)