Salesforce Fact #78 | Count the data
We can use countQuery() function of Database class instead of aggregate query to get the count of records.
This is basically dynamic SOQL in comparison with conventional static approach like [SELECT Count() FROM Account];
Collected from: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_database.htm
Attached is the screenshot.
Comments
Post a Comment