Skip to main content
Inspiring
Feb 18, 2021 12:22 AM UTC
Question

How to use row_number

I need to create a Unique ID in View which is not available in Table.

I searched many places but all told to use row_number. Even though i tried but its throwing an error:

Have used this  SELECT Row_number() OVER(ORDER BY `locationName`) AS `RID`,

Note: `locationName` is available as column and have used in the view that have created

 

Can someone help out with workable code

    3 replies

    parthg0005
    New Participant
    Feb 18, 2021 7:22 AM UTC

    Could you please state the error as well

    Inspiring
    Feb 18, 2021 7:47 AM UTC

    I can't share complete code .. Hope this is sufficient

    csteward
    Brainy
    Feb 19, 2021 7:09 PM UTC

    Can you share the error message you are receiving?