function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

I would like to display top 10 accounts based on annual revenue..could you let me know how to write a query for this one

list<account> acctlist= new list<account>([select id, annualrevenue from Account order by annualrevenue desc limit 10]);