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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how can I concatenate symbols with fields in select?

how can I concatenate symbols with fields in select?

Like:

SQL SELECT

  num_cont & '/' & year_cont as contract,

1 Solution

Accepted Solutions
Not applicable
Author

Like this:

Load *,

Field1 &'_'& Field2 as Key ;

SQL Select *

From DataBase:

Thanks

AJ

View solution in original post

10 Replies
rustyfishbones
Master II
Master II

You can do this in Qlikview as a List box Expression

Nicole-Smith

Something like this should do it (I'm guessing your fields are numbers by the way they're named):

SQL SELECT

cast(num_cont as varchar(50)) + '/' + cast(year_cont as varchar(50)) as contract,

Not applicable
Author

Like this:

Load *,

Field1 &'_'& Field2 as Key ;

SQL Select *

From DataBase:

Thanks

AJ

rustyfishbones
Master II
Master II

not sure this can be done in Qlikview??

Do you have a sample of how this works Nicole

Thanks

Alan

Nicole-Smith

I have a sample but it's not like you can connect to my database...

rustyfishbones
Master II
Master II

Yes indeed,

but can you share the script that shows this

What is the Syntax?

Not applicable
Author

thx, this work.

Nicole-Smith

SQL SELECT

cast(Field1 as varchar(50)) + '/' + cast(Field2 as varchar(50)) as Test

FROM Table;

rustyfishbones
Master II
Master II

does not work for me,

can you take a snapshot of your script, here is what I have and it does not work for me

2014-03-14_2017.png