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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Check data from DB on tmap

I have a question (look the attached image).

In the same DB i have 3 tables: lar, Base_Address, Base_Country.

The job that I create have "lar" table as input, a tMap and "Base_Address" table as output. Goal is to migrate data to the new structure.

The problem is that the output table ("Base_Address") have more fields, for example country, and I need to keep this data from Base_Country table. I can obtain the value of country searching it into Base_Country table with city parameter.

Target is to fill province, city (both from "lar") and country of Base_Address table, how can i do that?

 

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi
You need to do an inner join between lar and Base_Country table on tMap based on city column to get the country value from Base_Country table. The job looks like:
tmysqlinput(lar)--main--tMap---....
                                       |
                                 lookup
                                       |
                     tmysqlinput(Base_Country )
Regards
Shong

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hi
You need to do an inner join between lar and Base_Country table on tMap based on city column to get the country value from Base_Country table. The job looks like:
tmysqlinput(lar)--main--tMap---....
                                       |
                                 lookup
                                       |
                     tmysqlinput(Base_Country )
Regards
Shong