How do I add a custom name to my columns?

jdowdy
jdowdy ✭✭✭✭✭
edited May 2022 in Compliance & Reporting
Hi! Is there any way to add custom text for a column after the RETURN? For example, if I have a tag ingested as "Production". I'd like to alias it as "ProductionTag" in the returned column names.

Answers

  • chjlarson
    chjlarson ✭✭✭✭
    Hi! 

    You can use AS after the RETURN to alias the column name. Here is an example:
    Find DataStore as r
    return r.tag.Production as ProductionTag

This Month's Leaders