You need to sign in to do that
Don't have an account?
Shubham Sengar
SOQL Problem 7
Show all the Account records in alphabetical order by first name, sorted in descending order, with
accounts that have null names appearing last:??
accounts that have null names appearing last:??
Are you referring to contacts?
Thx
Whether you are reffering Account or Contact, you just need to put 'order by Name DESC' in your query like:
For Account:
Select Id, Name from Account order by Name DESC
For Contact
Select Id, FirstName from Contact order by FirstName DESC
If this help, please mark as best answer so will help others also.
Thanks,
Neetu
Please try below query. I hope that will help you Please check below post for some sample
https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_orderby.htm
Please let us know if this will help you
Thanks
Amit Chaudhary