Posts by Renato • 11 points
1 post
-
1
votes2
answers266
viewsQ: How to increment a variable under a certain condition
I’m having a little problem with SQL. I need to increment a variable sel2 from a condition defined in sel1, for example: linha | sel1 | sel2 1 | 1 | 1 2 | -1 | -1 3 | -1 | -2 4 | 1 | 1 5 | 1 | 2 6 |…
sql-serverasked Renato 11