Is it possible to alias a column in SQL code that is embedded in a Stata do-file. I want to do something like:
The main reason to do this is in cases where there are reserved SQL words that I would like to serve as variable names in Stata, where such restrictions don't bind.
Code:
#delimit; odbc load, exec(`" SELECT TOP 10 user_id AS "alised_user_id" FROM dw_users; "') clear dsn("mozart") lowercase sqlshow;
Comment