cancel
Showing results for 
Search instead for 
Did you mean: 

What is the SQL ROWNUM equivalent in HANA SQL script

0 Kudos

Hi,

Could any one let me know what is the ROWNUM equivalent in HANA? Thanks for the help.

Thanks,

Jyothirmayi

Accepted Solutions (1)

Accepted Solutions (1)

former_member182302
Active Contributor
0 Kudos

Use window functions to generate the row number to use

Regards,

Krishna Tangudu

Answers (1)

Answers (1)

former_member186082
Active Contributor
0 Kudos

Hi Jyothirmayi,

ROW_NUMBER() OVER (ORDER BY <FIELD LIST>) is the function to generate row numbers.

ORDER BY clause is mandatory to generate row numbers in HANA.

Regards,
Chandra.