Hi
I have this table:
proj - nun - X
aaa - 1 - 0
aaa - 2 - 0
bbb - 3 - 0
bbb - 4 - 0
bbb - 5 - 0
bbb - 6 - 0
ccc - 7 - 0
i need to get this
proj - nun - X
aaa - 1 - 1
aaa - 2 - 2
bbb - 3 - 1
bbb - 4 - 2
bbb - 5 - 3
bbb - 6 - 4
ccc - 7 - 1
how I can do it with sql query ?
(sql server 2008)