Reset Row Number on value change, but with repeat values in partition
问题 I'm having trouble with something very similar to this question T-sql Reset Row number on Field Change The solution to this question is perfect, works fine. Except when I try with multiple other 'custno', it breaks down. What I mean by that: custno moddate who -------------------------------------------------- 581827 2012-11-08 08:38:00.000 EMSZC14 581827 2012-11-08 08:41:10.000 EMSZC14 581827 2012-11-08 08:53:46.000 EMSZC14 581827 2012-11-08 08:57:04.000 EMSZC14 581827 2012-11-08 08:58:35