Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: How to preserve the Calculation View data into a permanent table with primary key condition checking - using Stored Procedure

$
0
0

Hi Thara,

Ideally UPSERT (UPDATE if keys match, INSERT otherwise ) should work for your scenario. If that is not working(may be you should re check the situation why it is not working), you can try this logic . Write a join statement with not equal condition for all the keys with CALCULATION VIEW and the TABLE. ( on CALC_VIEW.COLUMN1 != TABLE.COLUMN1 && ....) . This join would return you the difference of rows available. Then you can do a blind insert to your table . Performance wise, it is not good, but you can have a try here .

 

 

Sree


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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