Sybase doesn't have a row_number() function.
You could try dumping all of your rows into a #temp table that has an identity column, then use the identity column as your row number.
Sybase doesn't have a row_number() function.
You could try dumping all of your rows into a #temp table that has an identity column, then use the identity column as your row number.