Snowflake Vs MS-SQL - Part 24 - Column Alias
Column Alias
Sometimes you have to extract the data from the database and share it in Excel and hand it to a user or someone outside. In this case, you have to ensure that you do not expose confidential details like table name or column name.
In Snowflake, we don't need to mention ALL column names as above. We can use the keyword Rename.
If you see here, I wanted to hide the SSN column and alias it as code. I can use the Rename keyword along with Select *.
In case, you want to provide an alias for multiple columns then you can use as follows:
Comments
Post a Comment