You need to sign in to do that
Don't have an account?

how can i display rating value from Aggregate result..?
here i can easily display Annual revenue and i can't display rating value from AggregateResult..my code
if i use this code i can easily display Annualrecenue sum
list<AggregateResult> lst=[Select Rating, sum(Annualrevenue) sales from Account group by Rating ];
System.debug('*****************'+lst);
for(Aggregateresult ar:lst){
System.debug('*****************'+ar.sales);
}
But if i use this code i can't display rating value how can i display rating value...?
list<AggregateResult> lst=[Select Rating, sum(Annualrevenue) sales from Account group by Rating ];
System.debug('*****************'+lst);
for(Aggregateresult ar:lst){
System.debug('*****************'+ar.rating);
}
how can i display rating using this can anybody help me.........................................................................?
no its getting error..