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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
abhi90
Creator II
Creator II

Join 2 Different Tables of Different Database

I have to join 2 Different Tables of 2 Different Database. One from SQL Server and other is from Oracle. Now In Informatica we used 1 Dummy Column each for 2 and joined them. After Both database Input Components I kept tReplace to Replace a String each. Now when I am joining them in tmap creating 1 Dummy Column each for both Input Sets it is saying Dummy Columns can't be resolved or is not a variable. I have to filter out data after tmap in below way

(TO_DATE(Date Column of SQL SERVER,'YYYY-MM-DD') >= DATE COLUMN OF ORACLE and TO_DATE(Date Column of SQL SERVER,'YYYY-MM-DD') <=  DATE COLUMN OF ORACLE) AND UPPER(Brand column of SQL server)=UPPER(BRAND Column of Oracle Table). If anyone can help will be really helpful to him

 

Labels (2)
13 Replies
abhi90
Creator II
Creator II
Author

Hi Richard,Shong

Can you please advise

Anonymous
Not applicable

I'm not sure why you are using "Dummy Columns", is there not a natural key field which will help you join? Maybe if you show me your job design it will help me understand the issue. If you can do it in Informatica, you can do it in Talend...but not necessarily in the same way.

abhi90
Creator II
Creator II
Author

actually There is no such column to join between Them.So creating Dummy Columns.

tmssqlinput(select columns from Table)--->treplace(replacing a string)--->

toracleinput(select columns from Table)--->treplace(replacing a string)--->tmap(joining on those 2 Dummy Columns)----Have to filter out based on my condition----

abhi90
Creator II
Creator II
Author

Can anybody please help for the filter condition which i have mentioned.
abhi90
Creator II
Creator II
Author

Hi Richard,

Now joining is happening. But unable to do the Filtering. 

After tmap I have to do a filter in below way(which we did in Informatica)

(TO_DATE(Date Column of SQL SERVER,'YYYY-MM-DD') >= (DATE COLUMN OF ORACLE which is in MM/DD/YYYY Format) and TO_DATE(Date Column of SQL SERVER,'YYYY-MM-DD') <= (DATE COLUMN OF ORACLE which is in MM/DD/YYYY Format)) AND UPPER(Brand column of SQL server)=UPPER(BRAND Column of Oracle Table).

manodwhb
Champion II
Champion II

in a tMap outpout section Activate.unactivate expression filter to do the filter.

abhi90
Creator II
Creator II
Author

Hi Manohar,

There I am doing it. But I am trying with TalendDate.DiffDate where Filtering not happening. So asking what talendDate function I have to use? 

 

manodwhb
Champion II
Champion II

use TalendDate.compareDate(myDate,myDate2) in tmap
manodwhb
Champion II
Champion II

@abhi90 Did it help you ?