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
syamkishore1.3906536981992773E12syamkishore1.3906536981992773E12 

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

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