• #69018
    Salesforce | Shubham Shubham #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?

    Salesforce | MOHIT MOHIT #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.

Viewing 2 posts - 1 through 2 (of 2 total)

Please to reply to this topic.


We're not around right now. But you can send us an email and we'll get back to you, asap.


About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2020 Forcetalks. All Right Reserved.

Log in with your credentials


Forgot your details?