FavoritosRaghav Sharma (Salesforce) perguntou em #Apex17 de out. de 2018, 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 respostaClassificarClassificar por dataClassificar por mais útilClassificar por dataRajamohan Vakati (Amazon)17 de out. de 2018, 16:00Try this.. Select Sum (sal__c) from Employee__c groupBy Contacts.AccountID__cAdicionar um comentárioEscrever uma resposta...NegritoItálicoSublinhadoTachadoLista com marcadoresLista numeradaAdicionar linkBloco de códigosInserir imagemAnexar arquivosURL do linkCancelarSalvar0/9000Responder
Rajamohan Vakati (Amazon)17 de out. de 2018, 16:00Try this.. Select Sum (sal__c) from Employee__c groupBy Contacts.AccountID__c