Trigger --> Write a trigger on opportunity to related account and find max and min amount and then populatetd on account object without aggregate fuction. ------------------------------------------------------------------------------------------------------------------------- trigger opportunityMaxAndMin on Opportunity (after insert, after update, after delete) { Set<Id> accountIds = new Set<Id>(); if (Trigger.isInsert || Trigger.isUpdate) { for (Opportunity opp : Trigger.new) { accountIds.add(opp.AccountId); } } else if (Trigger.isDelete) { for (Opportunity opp : Trigger.old) { accountIds.add(opp.AccountId); } } Map<Id, Account> accountsToUpdate = new Map<Id, Ac...