I have table in MSSQL containing batch numbers and counter columns. During the shift, at the end of every batch the counter is reset. I have to write query showing the runni