I have a sql problem that I would like some assistance with. Please see the image below:
So, it is the last column (newflag) that I want implemented in a sql. The idea is to increment by 1 when the value in 'Breakpoint' changes. Starting value is 1. When the value repeats in 'Breakpoint', do not increment but keep previous value.
I want to do this for every unique client and location.
Thank you very much for your assistance