I have data that I would like to add a column to indicate a sequential increase. For example, a query has the following result
Name Task
ABC apple
DEF apple
GHI banana
JKL orange
MNO orange
I would like to have a third column that shows a sequential increase with each change in the Task column. For example, the above query results would look like this:
Name Task Seq
ABC apple 1
DEF apple 1
GHI banana 2
JKL orange 3
MNO orange 3
I don’t know if this can be accomplished in SQL or by a module, but I am open to either.
TIA,
GGleason