I need to create a value in a column that increments.
A simple example would be:
SELECT
SomeColumn as "Some Column",
'N2-L2' AS "Plan vs Instance"
FROM SomeTable
The key is, the number "2" (in 'N2-L2') needs to increment.
So, the value in the first selected row would be:
'N2-L2'
The value in the second selected row would be:
'N3-L3'
... and so on.
What is the best way to accomplish this?