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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
venkatadilip
Contributor
Contributor

How to acheive this <= join condition in tjoin or tmap component

Hi,

I have this query

select TBL1.*

from TBL1,

TBL2

inner join 

ON trim(TBL1.ROWID)=trim(TBL2.ROWID)

CAST(CAST(TBL2.CREATE_DATE AS TIMESTAMP) as DATE)<=CAST(CAST(TBL1.CREATE_DATE AS TIMESTAMP) as DATE)

which needs to be translated into Talend job.

first join condition (

trim(TBL1.ROWID)=trim(TBL2.ROWID)) is not a problem to achieve

but how to implement the second join condition CAST(CAST(TBL2.CREATE_DATE AS TIMESTAMP) as DATE)<=CAST(CAST(TBL1.CREATE_DATE AS TIMESTAMP) as DATE) is what i need help with...

How to translate the second joining condition in Talend??

Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

You need do cross join and then in tMap output section enable filter with that condition. ​

View solution in original post

2 Replies
manodwhb
Champion II
Champion II

You need do cross join and then in tMap output section enable filter with that condition. ​

venkatadilip
Contributor
Contributor
Author

Thank you @Manohar B​