Here is my table
------------------
|__fruit__|_color_|
| banana | yellow|
| lemon | yellow|
| apple | red |
| cherry | red |
| lime | green |
The output from the query should be:
yellow, banana
yellow, lemon
red, apple
red, cherry
I'm wanting to return the fruit with the maximum amount of the count of color. Since both the color red and the color yellow have the same maximum amount of color, I havent been able to get them both.
I have tried using distinct keywords, as well as trying different aggregate functions using count but have only been able to return one color.