Reputation: 347
I am creating columns naming them using Aliases as how i want, but no matter what case i use, finally i see only lowercase headers in the table. how can i get what i want.
CREATE table schemaName.tablename AS
SELECT action
FROM schemaName.differentTableName AS "Upper.Action"
i currently get
action
data1
data2
data3
what i want is
Action
data1
data2
data3
Upvotes: 1
Views: 2174
Reputation:
Your SELECT statements assign an alias to the table, not the column. You need to use a quoted column alias
create table schemaName.tablename as
select action as "Action"
from schemaName.differentTableName;
Upvotes: 3