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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] cast type of key from NVARCHAR to INT

Hi,
I have a key type as NVARCHAR from MSSQL database. In my job I want to perform the join between two tables based on this key (I'm able to to this) but just after I want to convert the key table from NVARCHAR to INT in order to insert it in a postgres sql database.
In which step i can do that I want?
1) Convert and than join the table?
2) In the tMAP in which the join is executed?
3) Or after in the tPostgresqloutput step?
Thanks
Labels (2)
1 Solution

Accepted Solutions
alevy
Specialist
Specialist

In the tMap output define the column as Integer with an expression like Integer.parseInt(row1.key)

View solution in original post

2 Replies
alevy
Specialist
Specialist

In the tMap output define the column as Integer with an expression like Integer.parseInt(row1.key)
Anonymous
Not applicable
Author

Thanks!