+ 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