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
jedi_101jedi_101 

How do I do aggregations in SOQL language

I want to write a simple select count (*) from lead.  I get an error if I give this statement. Could someone please help
SuperfellSuperfell
select count() from lead


There's a detailed section on SOQL on the Web Service API docs.
http://www.salesforce.com/us/developer/docs/api/index.htm