Skip to content
Advertisement

Apply Sequence based on unique_id

I have a table:

table1

I want to use a sequence to assign it for each unique_id.

I wrote the following which doesn’t seem to work:

The output would be:

How can I make it work?

Advertisement

Answer

Try this:

Hope it is helpful.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement