I have a table of records which have duplicate values in a certain column. e.g
What I would like to do is keep unique Colour values only. So in the above example, there must be only one person who has Black, and only one person who has Yellow. I want the person that is removed to be the one who has the higher rate. So those with 9 will be deleted.
How can I do this in Access via SQL?
Code:
ID Name Colour Rate
1 John Black 8
2 Peter Black 9
3 Anne Blue 8
4 Polly Yellow 8
5 Serah Green 9
6 Gary Yellow 9
What I would like to do is keep unique Colour values only. So in the above example, there must be only one person who has Black, and only one person who has Yellow. I want the person that is removed to be the one who has the higher rate. So those with 9 will be deleted.
How can I do this in Access via SQL?