Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9063

Re: Looping in BODS DF

$
0
0

Thank you vasanth!

Say I have records like this for key

 

Key  timestamp  flag

100  tm1             Update

100 tm2              Update

100 tm3             Split

 

101  tm4            New

101  tm5             update

 

102  tm6             New

102   tm7            split

102   tm8            update

 

 

My job should insert 2 records (one with key 101, one with 102)

key   last_update_time   last_split_time  insert_time

101   tm5                            NA                    tm4

102   tm8                            tm7               tm6

 

and update one target rec like

Key  last_update_time  last_split_time insert time

100    tm2                      tm3                   tm0

 

I took very simple use case of my requirement. There are other calculation that are based on the previous states of the records

 

Regards,

Suman.


Viewing all articles
Browse latest Browse all 9063

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>