raresql.com
SQL SERVER 2012 – How to generate a negative serial numbers for a result set by using the Sequence Object
In my earlier article, I wrote about how to generate a serial number by using the sequence object for a result set . However, sometimes you need to generate a negative serial number for any result …