Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

how to add a column to an existing labeled table

Hello

suppose I got the following script

Table1:

load

     F1,

     F2

sql select * from sourceTable;

....

now at some point of the script I need to add a new column to Table1 which is the concatenation between F1 and F2

now what I'm doing is the following:

TempTable:

load F1,F2, F1 & '|' & F2

resident Table1;

drop table Table1

Table1:

load * resident TempTable;

drop table TempTable;

is there another faster way?

I can walk on water when it freezes
1 Reply
SunilChauhan
Champion II
Champion II

try this

Table1:

load

     F1,

     F2,

F1&'1'&F2 as F3

sql select * from sourceTable;

Sunil Chauhan