Grabbing the row with the highest value from each group?
问题 I have data that looks like this: Table Group: "A" , Color: "Blue", Count: "400" Group: "A" , Color: "Green", Count: "3" Group: "A" , Color: "Yellow", Count: "6" Group: "A" , Color: "Red", Count: "1" Group: "B" , Color: "Purple", Count: "243" Group: "B" , Color: "Green", Count: "2" Group: "B" , Color: "Yellow", Count: "7" How can I query this data to get for each group the most popular (by count) color. So the result would look like this: Result Group: "A", Color: "Blue" Group: "B", Color: