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

Re: Generation of Time dependent records with one source-field

$
0
0

Hi Thomas,

 

That's not an easy requirement but could the following approach work for you:

 

  1. Sort table RESULT_PACKAGE on VTREF and SETFLAG in ascending order and date field in descending order;
  2. Loop over RESULT_PACKAGE;
  3. Read table RESULT_PACKAGE with key VTREF, the different SETFLAG than the once selected and MDRKD
  4. If found, then delete both records from RESULT_PACKAGE (i.e. with key VTREF and MDRKD);
  5. After the loop, delete adjacent duplicates comparing VTREF and SETFLAG;
  6. After that, continue with the logic I suggested on

 

Best regards,

Sander


Viewing all articles
Browse latest Browse all 3510

Trending Articles



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