Add series number to an existing table can be done by following method:
SELECT t.myDate, (
SELECT Count(*)
FROM myTable AS s
WHERE t.myDate <= s.myDate) as myRank
FROM myTable AS t
However, if it does not work for you, try following option:
Alter Table Temp_SequenceChange Add Column SequenceNo AutoIncrement;
No comments:
Post a Comment