Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can I create a unique number for every row within a set of row values?

User_MIL91Oct 5 2020

I have a query that returns a number of tags for a set of row values. This is similar to have a set of hashtags in a twitter. And I need to add a number to each of the tags. I want the numbers to be sequential within each set of row values. So if you were selecting all the tweets for a user, you would have the username and the tweet contents and then a number of hashtags. I basically want to number the hashtags within a single tweet, starting over for the next tweet. How can I do this within an Oracle SQL query?

This post has been answered by Frank Kulash on Oct 5 2020
Jump to Answer
Comments
Post Details
Added on Oct 5 2020
2 comments
2,280 views