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
IT Admin 179IT Admin 179 

SOSQL task vs (contact &account table )

HI All,  I am trying to figure out how to query via
contact, and contact, accoun table.

I am guessing that task is a child of account ?
SELECT  account.id, Task.whoid FROM Task    - it works
 
SELECT  account.id, (select task.whoid from Account.task) from account   -why does this not work?
 
 
Raj VakatiRaj Vakati
Use this SOQL 
 
SELECT  Id, (select whoid from Tasks) from account

 
HARSHIL U PARIKHHARSHIL U PARIKH
User-added image
HARSHIL U PARIKHHARSHIL U PARIKH
Sorry I had to attach an image since I am getting some technical error while doing the post
Error: The operation is not permitted. If you received this in error, please contact info@developerforce.com (code: B2) !! Wow!