You need to sign in to do that
Don't have an account?
MPS Dev
Nested query
Hello,
I have 2 custom objects and 1 standard(Project, Task, Assignment). Each Project can have multiple tasks, Each Task has 1 Assignment.
I can query it like this
SELECT Assignment.Name FROM Task WHERE WhatId = 'RecordId'I thought it might be cool to do something like this
SELECT ( SELECT (SELECT Name FROM Assignment) FROM Task) FROM ProjectBUT I can't seem to get the second query to compile, any insight would be appericiated!
try once like below :
Hope this helps you!
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others.
Thanks
Varaprasad
@For Support: varaprasad4sfdc@gmail.com
Blog : http://salesforceprasad.blogspot.com/
Please see the below link :
http://blog.jeffdouglas.com/2010/02/22/soql-how-i-query-with-thee-let-me-count-the-ways/
It has sufficient information.
Please mark as best answer if it helps you.
Thank You
Ajay Dubedi