You need to sign in to do that
Don't have an account?
soql query for Child relationship
Hi Friends,
I have stucked for a SOQL query. Requirement is as below:
I have 3 objects for example A, B and C
A- custom Object
B- Account
C- Custom Object
A-B- Masterdetail Relationship
B-C - lookup relationship
Their is no relationship between A and C but I have to fetch data using query from Object C.
I have to display C object records for each account. How to write query for this condition?
I have stucked for a SOQL query. Requirement is as below:
I have 3 objects for example A, B and C
A- custom Object
B- Account
C- Custom Object
A-B- Masterdetail Relationship
B-C - lookup relationship
Their is no relationship between A and C but I have to fetch data using query from Object C.
I have to display C object records for each account. How to write query for this condition?
Please check once below code :
Here Account means B
opportunities means C
contacts means A,
Hope it helps you:
Please let me know In case of any concerns.
Thanks
Varaprasad