Skip to content

Commit e25ce1b

Browse files
authored
Update HighestunitPrice.cls
1 parent 86c1601 commit e25ce1b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

HighestunitPrice.cls

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
public class HighestunitPrice {
2-
3-
}
2+
public static void PrintSA(){
3+
List<AggregateResult> agr = new List<AggregateResult>();
4+
agr = [select StageName, MAX(Amount) FROM Opportunity Where StageName = 'Closed Won' GROUP BY StageName];
5+
System.debug('->'+agr);
6+
}
7+
}

0 commit comments

Comments
 (0)