No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Relationship Queries
Relationship queries are similar to SQL joins. However, you cannot perform arbitrary SQL joins. The relationship queries in SOQL must traverse a valid relationship path as defined in the rest of this section.
You can use relationship queries to return objects of one type based on criteria that applies to objects of another type, for example, “return all accounts created by Bob Jones and the contacts associated with those accounts.” There must be a parent-to-child or child-to-parent relationship connecting the objects. You can’t write arbitrary queries such as “return all accounts and users created by Bob Jones.”
- Understanding Relationship Names
- Using Relationship Queries
- Understanding Relationship Names, Custom Objects, and Custom Fields
- Understanding Query Results
- Lookup Relationships and Outer Joins
- Identifying Parent and Child Relationships
- Understanding Polymorphic Keys and Relationships
- Understanding Relationship Query Limitations
- Using Relationship Queries with History Objects
- Using Relationship Queries with Data Category Selection Objects
- Using Relationship Queries with the Partner WSDL