sql - SOQL statement joining 2 objects -
having issues retrieving data 2 different sf objects, custom object , accounts object. there field in contact object, first i'm trying tackle jobs db , account object. here query without join:
contact__c , practice_name__c both type lookup. i'm not sure these 2 values returned are... keys used in clause? here can see relationships:
can show me join return query above field names rather foreign keys?
for accessing fields of lookup objects don't need join query, can these fields in 1 query, instance:
select name, email__c, contact__r.name, practice_name__r.name job_database__c status__c = 'active'
Comments
Post a Comment