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

Re: How can we put a resultset in a table in HANA

$
0
0

Hi

 

Check this if you want unique identifiers you can use the following ways.

 

Creat a sequence and use the same as a column by

 

Select colA, colB, colC...,(SELECT seq.NEXTVAL FROM DUMMY) as colZ

          from TableAB

               where colA = 'A1';

 

If the uniqueness is a combination of columns then you can try the

ROW_NUMBER() over (partition by colA,colC order by colA.colC)


Viewing all articles
Browse latest Browse all 9069

Trending Articles



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