function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Difference between a Standard Object Opportunity and opportunities



Here is the blog for Group, Sum and Order data in Apex.


Can you please look at the code for SUM and tell me what is the difference between Opportunity and Opportunities.


Can this type of thing be used in a similar type of Custom Class.

Like I have a custom object called Customer__c then can I use Customers as they have used opportunities..

Please help..

I am realyy confused..


Waiting for your prompt response.




the plural "opportunities" refers to a relationship query, see|SkinName=webhelp for additional explanation.
For parent-to-child relationships, the parent object has a name for the child relationship that is unique to the parent, the plural of the child object name. For example, Account has child relationships to Assets, Cases, and Contacts among other objects, and has a relationshipName for each, Assets, Cases, and Contacts.These relationships can be traversed only in the SELECT clause, using a nested SOQL query.