Activity Forums Salesforce® Discussions List out different methods of ProjectionNode class in Salesforce?

  • Prachi

    Member
    August 28, 2019 at 4:59 am

    Hi Laveena,

    The following are methods for ProjectionNode.
    1. sum()
    Returns the sum of a numeric field.

    Signature-
    public wave.ProjectionNode sum()

    2. avg()
    Returns the average value of a numeric field.

    Signature-
    public wave.ProjectionNode avg()

    3. min()
    Returns the minimum value of a field.

    Signature-
    public wave.ProjectionNode min()

    4. max()
    Returns the maximum value of a field.

    Signature-
    public wave.ProjectionNode max()

    5. count()
    Returns the number of rows that match the query criteria.

    Signature-
    public wave.ProjectionNode count()

    6. unique()
    Returns the count of unique values.

    Signature-
    public wave.ProjectionNode unique()

    7. alias(name)
    Define output column names.

    Signature-
    public wave.ProjectionNode alias(String name)

    Thanks.

    • This reply was modified 5 years, 3 months ago by  Prachi.
    • This reply was modified 5 years, 3 months ago by  Prachi.
  • Saddam

    Member
    August 28, 2019 at 6:52 am

    Hi Laveena,

    The following are methods for ProjectionNode.
    sum()
    Returns the sum of a numeric field.
    avg()
    Returns the average value of a numeric field.
    min()
    Returns the minimum value of a field.
    max()
    Returns the maximum value of a field.
    count()
    Returns the number of rows that match the query criteria.
    unique()
    Returns the count of unique values.
    alias(name)
    Define output column names.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos