Similar to a recent post of mine \"t-sql sequential duration\"”, but not exactly the same, I want to reset the row number based on a change in column x (in my case, column \
Instead of:
PARTITION BY custno ORDER BY custno, moddate, who)
try:
PARTITION BY custno, who ORDER BY custno, moddate)