BookmarkSubscribeRSS Feed
Doc_Duke
Rhodochrosite | Level 12
What is the difference between the the value put in for the "Column" vs "Alias" in the Computed Columns part of the Query Builder? I see that the "alias" becomes the "column name" and the 'column' becomes the 'Input' in the "Select data" display, but I can't figure out any function for the differentiation. I Googled and didn't find anything useful.
2 REPLIES 2
ChrisHemedinger
Community Manager
Doc,

Most of the time these values can be the same, and we've considered simplifying the UI to reflect that.

The "Column" field is what you want to show in the query builder -- you can regard that as the "friendly name" -- something that's easy to understand based on its name.

The "Alias" field is the name that's assigned via the SQL syntax, and you might want that to be different to make the syntax more readable or easier to maintain if you use the SQL as part of another SAS program.

Chris
SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
ChrisHemedinger
Community Manager
For a bit more about aliases, see:
http://blogs.sas.com/sasdummy/index.php?/archives/151-Alias-A-table-by-any-other-name.html

Chris
SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1722 views
  • 0 likes
  • 2 in conversation