You can include any of these in the field list:
- FIELDS(ALL) — select all the fields of an object.
- FIELDS(CUSTOM) — select all the custom fields of an object.
- FIELDS(STANDARD) — select all the standard fields of an object
Home » SOQL
You can use the GROUP BY option in a SOQL query to avoid iterating through individual query results. That is, you specify a group of records instead of processing many individual records.
GROUP BY clause is used in SOQL query to group set of records by the values specified in the field. We can perform aggregate functions using GROUP BY clause.
Both GROUP BY and GROUP BY ROLLUP Clause are similar to each other but IN SOQL GROUP BY ROLLUP Clause returns multiple levels of subtotal rows.
When we using GROUP BY ROLLUP Clause in a statement we can add up to three fields in a comma-separated list.
SOQL defines several escape sequences that are valid in queries so that you can include special characters in your queries. You can escape new lines, carriage returns, tabs, quotes, and more. The escape character for SOQL is the backslash (\) character.
When SOQL statements we should follow some date formats which are predefined in salesforce. You can specify date values or date literals in WHERE clauses to filter SOQL query results. Dates represent a specific day or time, while date literals represent a relative range of time, such as last month, this week, or next year.
Comparison operators in SOQL are used to compare a value with another value to return TRUE or FALSE.
SOQL term as Salesforce Object Query language, This is Salesforce Object Query Language designed to work with SFDC Database.
Filtering records with various operators let's check all one by one Where, LIKE, IN, NOT IN, INCLUDES, EXCLUDES, Semi-Joins with IN and Anti-Joins with NOT IN, ORDER BY, GROUP BY, OFFSET