Gid Rid Cid PriorityId
1 7 11 NULL
1 7 12 NULL
1 8 13 NULL
1 9 25 NULL
1 13 18 NULL
1 13 19 NULL
1 14 23 NULL
1 14 24 NULL
I need to set the priorityId to the following. Can anyone suggest an sql update statement. I think I would need a group by Rid and Gid or self join
Gid Rid Cid PriorityId
1 7 11 1
1 7 12 2
1 8 13 1
1 9 25 1
1 13 18 1
1 13 19 2
1 14 23 1
1 14 24 2
Thank you