I have few columns in my table (SQL Server 2000 database). I have information like
OrderID Design Qty
------------------------------
28500 R6192WHM+DWN 1
28500 P3150WHM+DWN 1
28504 E3085/2DWN 1
28503 R5595HCT(P) 1
28503 R4768DWN 1
28505 E3415D(P) 1
28505 E3413DWN 1
28505 E3365AQ(P) 1
I require information like this (i.e sno based on orderid )
OrderID Design Qty SNO
-------------------------------------
28500 R6192WHM+DWN 1 1
28500 P3150WHM+DWN 1 2
28504 E3085/2DWN 1 1
28503 R5595HCT(P) 1 1
28503 R4768DWN 1 2
28505 E3415D(P) 1 1
28505 E3413DWN 1 2
28505 E3365AQ(P) 1 3