I am not able to use the sequence function amazon athena. It shows a syntax error saying : Not a window function: sequence
I wrote the following code : SELECT sequence(1, 1) OVER () as seq_num FROM <table_name>
I am not able to use the sequence function amazon athena. It shows a syntax error saying : Not a window function: sequence
I wrote the following code : SELECT sequence(1, 1) OVER () as seq_num FROM <table_name>
Copyright © 2021 Jogjafile Inc.
You might want to use ROW_NUMBER(). You can either use:
or