Viewing post 1 (of 1 total)
create table t
(
id int identity (1,1),
i int,
a varchar(10)
)
Select id,i, a, Row_Order=(select count(T1.i) + 1
from t T1
where T1.id < T.id and t1.a = t.a
from t T
June 4, 2010 at 6:49 am
#1176500