收藏Raghav Sharma (Salesforce) 提问于 #Apex2018年10月17日 10:42On account , we have contact. There is a custom object called employee having lookup on contact and custom field called salary. I want to display the sum of all employee salaries on account record . Can we write an soql query for this?1 个回答排序按日期排序按最有帮助排序按日期排序Rajamohan Vakati (Amazon)2018年10月17日 16:00Try this.. Select Sum (sal__c) from Employee__c groupBy Contacts.AccountID__c添加评论撰写回答...粗体斜体下划线删除线项目符号列表编号列表添加链接代码块插入图像附加文件链接 URL取消保存0/9000回复
Rajamohan Vakati (Amazon)2018年10月17日 16:00Try this.. Select Sum (sal__c) from Employee__c groupBy Contacts.AccountID__c