+ 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...