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
sultansultan 

can anybody Resolve this code below


list<account> alist=[select  count(name) from account where name like 'T%'];
for(account a:alist)
{
    system.debug('Records are:'+a);
}
Best Answer chosen by sultan
Ankit AroraAnkit Arora
AggregateResult[] alist = [select  count(name) from account where name like 'T%'];
for(sObject a:alist)
{
    system.debug('Records are:'+a);
}
Here it is.

All Answers

Ankit AroraAnkit Arora
AggregateResult[] alist = [select  count(name) from account where name like 'T%'];
for(sObject a:alist)
{
    system.debug('Records are:'+a);
}
Here it is.
This was selected as the best answer
sultansultan
Thanks now it was Resolved...