Salesforce Certified Application Architect

Tuesday 24 November 2015

Fetching Unique Record in Salesforce via SOQL

  • Using GROUP BY we are able to fetch the Unique Record in Salesforce 

  • GROUP BY returns aggregate result list. 
LIST<AggregateResult> AccListAggregare = [SELECT Name from Account GROUP BY Name];


 also you can use of Count() method in SOQL
 SELECT count(id),Name FROM  Account GROUP BY Name
                           

No comments:

Post a Comment

Salesforce Certified Application Architect & Certified Data Architecture and Management Designer Exam

How to pass Salesforce Certified Data Architecture and Management Designer Exam This exam was 1st architect exam for me. Its not that muc...