I have the following table
ID No Color
A 2 RED
A 1 RED
B 3 RED
B 4 RED
C 2 RED
D 2 RED
D 1 RED
And my desired output Table
A 2 RED
A 1 BLUE
B 3 BLUE
B 4 RED
C 2 RED
D 2 RED
D 1 BLUE
Basically the Color column has to be changed to BLUE for for those ID's that are present more than once while 'No' less than the other one.
Any help.
ID No Color
A 2 RED
A 1 RED
B 3 RED
B 4 RED
C 2 RED
D 2 RED
D 1 RED
And my desired output Table
A 2 RED
A 1 BLUE
B 3 BLUE
B 4 RED
C 2 RED
D 2 RED
D 1 BLUE
Basically the Color column has to be changed to BLUE for for those ID's that are present more than once while 'No' less than the other one.
Any help.