Get parent records with atleast one child record in SOQL

Sample Query:

SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM Contact)

Cheers!!!

No comments:

Post a Comment