Numbering Rows in DB2 with ROW_NUMBER() and PARTITION BY
Working on a recent project, I had a task that required me to number the rows of result set; however, I needed to reset the numbering based on the distinct value of a field, or group of fields. I accomplished my task by leveraging ROW_NUMBER() and PARTITION BY.
[ Read More ]