You need to sign in to do that
Don't have an account?
SFDC_Evolve
Account & Task
How find all the account which are having Task related to them... .
Query must be formed on the Account Object . . :)
Please help :)
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
How find all the account which are having Task related to them... .
Query must be formed on the Account Object . . :)
Please help :)
Account to Task is a parent-to-child relationship, so you can't call on Task in your WHERE clause to filter for Accounts with Tasks assigned to them. You could use this query:
to pull up a list of all Accounts with Tasks assigned to them.
List<Account> acclist = [Select Id, Name From Account Where LastActivityDate != null];
System.debug(' ---------------- ' + acclist );
Out of curiosity, why must it be querying the Account object? Are there more parts to the query than just the Task requirement?