Skip to content
Advertisement

Increment column value based on condition

I’d like to increment the values in the column nc by 1 each time the value in 10minDiff changes. In the Table below, the values in nc should read 2 from row 1246 onwards and 3 the next time 10minDiff changes from 10.

enter image description here

Advertisement

Answer

Since data is not textual.I am writing UnTested query.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement