raresql.com
SQL SERVER 2012 – How to get a value from next result row effectively
Today, I was developing a customer analysis report, basically trying to find out customer’s trend of purchasing. To get the trend I need to get his next row (purchasing) result set in the cur…