Supported SOQL Commands. salesforce Big Objects
বিজ্ঞাপন
বিজ্ঞাপন
Async SOQL Supported SOQL Commands
"EventTime":"EventTime__c", "RecordIds":"Records_Seen__c"
},
}
"targetObject": "QueryEvents__c"
Supported SOQL Commands
Async SOQL supports a subset of commands in the SOQL language. The subset includes the most common commands that are relevant to key use cases.
Note:
For details of any command, refer to the SOQL documentation .
WHERE
Comparison operators
=, !=, <, <=, >, >=, LIKE
Logical operators
AND, OR
Date formats
YYYY-MM-DD, YYYY-MM-DDThh:mm:ss-hh:mm
Example
SELECT AnnualRevenue
FROM Account
WHERE NumberOfEmployees > 1000 AND ShippingState = ‘CA’
Date Functions
Date functions in Async SOQL queries allow you to group or filter data by time periods, such as day or hour.
Method
DAY_ONLY()
HOUR_IN_DAY()
CALENDAR_MONTH()
CALENDAR_YEAR()
Details
Returns a date representing the day portion of a dateTime field.
Returns a number representing the hour in the day for a dateTime field.
Returns a number representing the month for a dateTime field.
Returns the year for a dateTime field.
Example
SELECT DAY_ONLY(date__c), HOUR_IN_DAY(date__c), count(Id)
FROM FieldHistoryArchive
GROUP BY DAY_ONLY(date__c), HOUR_IN_DAY(date__c)
25
Async SOQL Supported SOQL Commands
Aggregate Functions
AVG(field), COUNT(field), COUNT_DISTINCT(field), SUM(field), MIN(field), MAX(field)
Note:
MIN()
and
MAX()
do not support picklists.
Example
SELECT COUNT(Id)
FROM FieldHistoryArchive
HAVING
Use this command to filter results from aggregate functions.
Example
SELECT LeadSource, COUNT(Name)
FROM Lead
GROUP BY LeadSource HAVING COUNT (Name) > 100
GROUP BY
Use this option to avoid iterating through individual query results. Specify a group of records instead of processing many individual records.
Example
SELECT COUNT(Id) count, CreatedById createdBy
FROM FieldHistoryArchive
GROUP BY CreatedById
Relationship Queries
Single-level child-to-parent relationships are supported using dot notation. Use these queries with the SELECT, WHERE, and GROUP BY clauses.
Example
SELECT Account.ShippingState s, COUNT(Id) c
FROM Contac
GROUP BY Account.ShippingState
Using Aliases with Aggregates
Examples
{"query":"SELECT count(Id) c, EventTime t FROM LoginEvent group by EventTime",
"targetObject":"QueryEvents__c",
26
Async SOQL
}
"targetFieldMap":{"c":"Count__c", "t" : "EventTime__c"}
{"query":"SELECT count(Id), EventTime FROM LoginEvent group by EventTime",
"targetObject":"QueryEvents__c",
}
"targetFieldMap":{"expr0":"Count__c","EventTime" : "EventTime__c"}
{"query":"SELECT count(Id ) c , firstField__c f FROM SourceObject__c",
}
"targetObject":"TargetObject__c",
"targetFieldMap":{"c":"countTarget__c","f":"secondFieldTarget__c"}
Supported SOQL Commands
27
INDEX
A
Async SOQL
Aggregate Functions
Aliases
Commands
Overview
Queries
Use cases
B
Big Objects
Apex
Composite primary key
Custom Big Object
Defining
Deploying
Index
Overview
Populating
Querying
28
ডাউনলোড
বিজ্ঞাপন