Sequential Column With Millions of Rows
Hey,
I have a need to make a table with a single column where each row is simply an incremental count (not necessarily starting at 0/1). Something like this:
Index
N
N+1
N+2
â¦
N+1000000
I would prefer a solution that doesnât involve a while loop, since I already know how to do that.
My end goal is to join this column against static data in a view in order to get a bunch of rows like this:
Index Some Other Columnsâ¦
N Some Static Data
N+1 Some Static Data
N+2 Some Static Data
â¦
N+1000000 Some Static Data
The combination of Index, and the static data will then be used to create computed columns.
If anyone has a good answer to either of these issues Iâd like to hear it J
Thanks!
|