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
Ranadheer chRanadheer ch 

Am running this query ...why it is not working i dont understand

Here am writing the parent -child query ...account parent and Entitlement is child...why it is not working..

select id,name,(select Entitlement.name,Entitlement.Status from entitlement) from account



Help me in this ...thanks in advance...
Best Answer chosen by Ranadheer ch
Tarun Kumar 1902Tarun Kumar 1902
select id,name,(select Entitlement.name,Entitlement.Status from entitlements) from account

All Answers

John PipkinJohn Pipkin
Ranadheer, 

You can't access the child from the parent. It has to be the other way around. Access the parent from the child
Tarun Kumar 1902Tarun Kumar 1902
select id,name,(select Entitlement.name,Entitlement.Status from entitlements) from account
This was selected as the best answer
Ranadheer chRanadheer ch
Thanks tarun for help