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.
This reply was modified 6 years, 3 months ago by Forcetalks.