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);

Comments

Popular Post

Salesforce Spring 16 Release Exam (Maintenance Exam Q&A) for Developer 201 Admin

Send SMS Using Batch Class in Salesforce

Show Custom And Standard Object