function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Please try as below
Select Id, Name from Parent__c where Id In (Select ParentId__c from Child__c) AND NOT =:childId
Please find the below query for a single parent record:
Select id,Name ,(select id,name from child__c where id != :ChildIdToExclude) from parent__c where id =:parentid