Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Extracting the latest status from JCDS

$
0
0

Hi All,

I have a requirement of extracting a single row for each OBJNR field in the status table JCDS based on

  • - Highest value in UDATE
  • - Highest value in UTIME
  • - Highest value in ISTAT
  • - Highest CHANGENR
  • - INACT =‘’

 

Since this is a big table, the approaches I tried aren't really performing well. I assume the best way to do this is by SQL considering the number of self joins that would be needed to achieve this via graphical. Correct me if I am wrong on that point please.

 

A plain order by on these records or a nested select for millions of entries also is not a viable solution.

 

Please let me know of a suitable approach.

 

 

Thanks,

Shyam


Viewing all articles
Browse latest Browse all 5653

Trending Articles



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