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
SAGAR LOKEGAONKARSAGAR LOKEGAONKAR 

How to write SOQL Query for parent to child & child to parent ??

Best Answer chosen by SAGAR LOKEGAONKAR
Amit Jadhav 13Amit Jadhav 13
Select id (Select id, Name From Contact ) From Account

Example of SubQuery Parent To Child

Select Id , Name, AccountId From Contact

Example of SubQuery child to Parent


thanks!

Regards,

Amit Jadhav 

All Answers

Amit Jadhav 13Amit Jadhav 13
Select id (Select id, Name From Contact ) From Account

Example of SubQuery Parent To Child

Select Id , Name, AccountId From Contact

Example of SubQuery child to Parent


thanks!

Regards,

Amit Jadhav 
This was selected as the best answer
SAGAR LOKEGAONKARSAGAR LOKEGAONKAR
thanks bro