Skip to main content
Announcements
Qlik Acquires Upsolver to Advance Iceberg Solutions: READ MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ouhtuuum
Contributor
Contributor

Hadoop Hive - check for latest end date

Hi all,

I'm currently struggling with a data join exercise. The data is sourced via SQL from Hadoop Hive.
I have following data:

 

Now I need to match the expiring date from table 3 to the ID's in table 1.
There are cases some though where ID's got replaced by other ones as you can see in table 2. For this cases the expiring date of the last replacement (e.g. C) needs to be added to all replaced IDs (A and B).
Is there a way to do that in the load script?

I thank you all in advance for your time!

Table 1 Table 2  Table 3 
ID IDreplaced_ID IDexpiring_date
A BA A01.01.2019
B CB B01.02.2019
C    C01.03.2019
D    D01.04.2019
E    E01.05.2019

 

edit: changed the attachment format

2 Replies
dplr-rn
Partner - Master III
Partner - Master III

the image is not visible
ouhtuuum
Contributor
Contributor
Author

Thanks for the heads up.
I now added the table to the post as well as an Excel.
Now you should be able to see it.