You need to sign in to do that
Don't have an account?

Order By the 2 Sepearate Criteria In SOQL Query
Hi,
I have a query as below:
Select fieldA, fieldB from object_X__c where fieldA = true and fieldB = true Order By ...
I want to return in the order such that the results that satisfies fieldA to go first, and the result that satisfies fieldB to go next. Thanks.
I have a query as below:
Select fieldA, fieldB from object_X__c where fieldA = true and fieldB = true Order By ...
I want to return in the order such that the results that satisfies fieldA to go first, and the result that satisfies fieldB to go next. Thanks.
The SOQL query will return you the list of records not just the cell values. Sorting the columns means it will returns the entire record based on your your field.
Thanks,
Pramodh.