Activity Forums Salesforce® Discussions What is difference between COUNT() and COUNT(fieldname) in SOQL in Salesforce?.

  • What is difference between COUNT() and COUNT(fieldname) in SOQL in Salesforce?.

    Posted by Anuj on June 22, 2020 at 2:12 pm

    What is difference between COUNT() and COUNT(fieldname) in SOQL in Salesforce?.

    Marziya replied 4 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Marziya

    Member
    June 22, 2020 at 2:58 pm

    COUNT(): It is an optional clause that can be used in a SELECT statement in a SOQL query to discover the number of rows that a query returns. ... COUNT(fieldname) :This function returns the number of rows that match the filtering conditions and have a non-null value records.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos