Fetch All Account in SOQL without any Contacts.
Fetch All Account in SOQL without any Contacts.
List<Account> lst=[SELECT Id
from Account where ID NOT IN
(Select AccountID from Contact) limit 1];
system.debug('lst****'+lst);
List<Account> lst=[SELECT Id
from Account where ID NOT IN
(Select AccountID from Contact) limit 1];
system.debug('lst****'+lst);
Comments
Post a Comment