+ Start a Discussion
soasoa 

Difference between a Standard Object Opportunity and opportunities

Hi,

 

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

 

http://blog.sforce.com/sforce/2008/10/group-sum-and-o.html

 

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.

 

Regards,

Diti 

a.schaefera.schaefer
the plural "opportunities" refers to a relationship query, see http://www.salesforce.com/us/developer/docs/api/index_Left.htm#StartTopic=Content%2Fsforce_api_calls_soql_relationships.htm|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.