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

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 9165

Trending Articles