Finding greatest between two dates

Six Stars

Finding greatest between two dates

Gurus,

Can anyone let me know what is the function in talend for comparing 2 dates and finding the greatest?

greatest (dt1, nvl(dt2,dt1)) as date.

Thanks

Highlighted
Fifteen Stars TRF
Fifteen Stars

Re: Finding greatest between two dates

Six Stars

Re: Finding greatest between two dates

Thanks! TRF for your quick reply. is there a function to handle it in tmap?I am using 2 tables for comparing the date columns?
Fifteen Stars TRF
Fifteen Stars

Re: Finding greatest between two dates

Join both tables with a tMap then you can compare dates from main and lookup tables using the appropriate expression based on TalendDate routines.

TRF

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

APIs for Dummies

View this on-demand webinar about APIs....

Watch Now