I am a beginner in Talend and I need to achieve the following:
For example, I have two input tables in the TMAP component.
Table 1:
Start_Date | End_Date |
---|---|
25/8/2022 | 1/9/2022 |
Table 2 (Lookup Table):
Non_working_days | Remark |
---|---|
27/8/2022 | Weekend |
28/8/2022 | Weekend |
31/8/2022 | Weekend |
I would want my output to count the number of non-working days from the lookup table.
For exp:
Start_Date | End_Date | No_of_non_working_days |
---|---|---|
25/8/2022 | 1/9/2022 | 3 |
Can this be achieved by using the expression editor in the TMAP component or I will need to create a routine to achieve it?
Thanks.