FavoritRaghav Sharma (Salesforce) fragte in #Apex17. Okt. 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 AntwortSortierenNach Datum sortierenNach "Am hilfreichsten" sortierenNach Datum sortierenRajamohan Vakati (Amazon)17. Okt. 2018, 16:00Try this.. Select Sum (sal__c) from Employee__c groupBy Contacts.AccountID__cKommentar hinzufügenAntwort schreiben...FettKursivUnterstreichenDurchstreichenListe mit GliederungspunktenNummerierte ListeLink hinzufügenCodeblockBild einfügenDateien anhängenLink-URLAbbrechenSpeichern0/9000Antworten
Rajamohan Vakati (Amazon)17. Okt. 2018, 16:00Try this.. Select Sum (sal__c) from Employee__c groupBy Contacts.AccountID__c