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

Looking for equivalent to "next value" in View

$
0
0

Hi community,

 

I'm looking for a way to create a view with an autoincremented column, starting at the max value of a column in another table.

 

As an example the TPC-DS view "item_view" has the same requirement.

 

CREATE VIEW item_view as

SELECT next value for item_seq i_item_sk

,item_item_id....

 

I tried item_seq.NEXTVAL , but it turns out that HANA doesn't support sequences in Views.

 

How can I solve this problem??

 

Thanks for your help!

 

Kind Regards

 

Demian


Viewing all articles
Browse latest Browse all 5653

Trending Articles



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