- February 10, 2020 at 3:04 pm #69018Shubham #21
Can we use aliasing in Salesforce?
Can we use aliasing in soql and if we can use it are there any limitations to it?February 11, 2020 at 6:41 pm #69213MOHIT #13
SOQL has very limited aliasing support. We can alias the table, e.g. SELECT a.name FROM Account a, but that’s of very little use. In most contexts we cannot alias fields.
The one exception is for queries that use aggregations, like SELECT COUNT(Id) recordCount FROM Account allows us to alias the result of the aggregation from it’s default expr0 to recordCount.
Please Register to reply to this topic. /