Viewing 2 posts - 1 through 2 (of 2 total)
Or if you can not add a identity column to the base table, insert the data into a temp table with an identity column and then use the query from...
June 29, 2004 at 9:30 am
#512471
If you could add an identity column, this query would be simple.
select *
from table as t1 join table as t2 on t1.id = t2.id + 1
dw
June 29, 2004 at 9:28 am
#512469