How can I update the top 2 records of every group in a table to the number 1.
GroupID Rec
1 1
1 1
1
2 1
2 1
2
etc.
Seems simple, but i can't seem to write it. i tried all sorts of subqueries but i doubt that is the route to go?
any help would be greatly appreciated.
GroupID Rec
1 1
1 1
1
2 1
2 1
2
etc.
Seems simple, but i can't seem to write it. i tried all sorts of subqueries but i doubt that is the route to go?
any help would be greatly appreciated.