Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Handling Delta records with .csv upload to HANA

$
0
0

Dear HANA Gurus,

 

Is there any possibilities or suggestions to handle delta while loading data from a .csv file into a HANA Table?

Let's say if I have 1 record in my table with values:

KEY=1234  AttributeA=1 Valid from = 01.01.2014 Valid To = 31.12.9999

 

I want to load a new record with values:

KEY=1234  AttributeA=2 Valid from = 06.05.2014 Valid To = 31.12.9999

 

I do not want to overwrite the first record I loaded in the HANA table.  I instead would like to keep track of this change and therefore be able to UPDATE record1 to :

KEY=1234  AttributeA=1 Valid from = 01.01.2014 Valid To = 05.05.2014 (Date From -1)

AND ADD Record

KEY=1234  AttributeA=2 Valid from = 06.05.2014 Valid To = 31.12.9999

Which will result in having 2 records for my same KEY Field (Table Key could be KEY and Valid FROM fields).

 

Is there any way to handle this in HANA without using BO DS or other components?

 

Thanks in advance,

Olivier


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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