giorgioste
asked on
Progressive count in a select
I've in SQL Server 7 a table grouppable where the key is X + Y.
I would like to do a SELECT ordered by X and Y with a column that give me a progressive count inside the field X. To explain better, I have to receive
X Y progr
a a 1
a b 2
b a 1
b b 2
b c 3
and so on.
Someone know if I can obtain with only one SELECT?
p.s. please, excuse my english
I would like to do a SELECT ordered by X and Y with a column that give me a progressive count inside the field X. To explain better, I have to receive
X Y progr
a a 1
a b 2
b a 1
b b 2
b c 3
and so on.
Someone know if I can obtain with only one SELECT?
p.s. please, excuse my english
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.