Skip to main content
Sudipta Deb (Silverline) ๋‹˜์ด #Salesforce์— ๊ธ€์„ ์˜ฌ๋ ธ์Šต๋‹ˆ๋‹ค

๐Ÿš€ ๐Ÿ”ฅ Difference Between Count() and Count(fieldName) in SOQL Query

The COUNT() method in SOQL (Salesforce Object Query Language) is used to count the number of records that meet specified criteria. Itโ€™s similar to the COUNT() function in SQL and is useful when you need to know the total number of records without retrieving all of them.

In SOQL (Salesforce Object Query Language), the COUNT(fieldName) function is used to count the number of non-null (non-empty) values in a specific field across a set of records. This function differs from the COUNT() function, which simply counts the total number of records.

#Salesforce #SOQL Queries #Sosl @The Blog Group

https://sudipta-deb.in/2024/01/difference-between-count-and-countfieldname-in-soql-query.html

 

๐Ÿš€ ๐Ÿ”ฅ Difference Between Count() and Count(fieldName) in SOQL QueryThe COUNT() method in SOQL (Salesforce Object Query Language) is used to count the number of records that meet specified criteria.

0/9000