I have a table like this:
| Key | Value | Message |
|-----|-------|---------|
| a | 1 | xx |
| a | 2 | yy |
| b | 5 | mm |
| b | 4 | nn |
I would like to group the data by Key, get the minimum Value of each group, and the related Message. The result is expected to be:
| Key | Value | Message |
|-----|-------|---------|
| a | 1 | xx |
| b | 4 | nn |
I'm using MySQL 5.7. Is it possible to do that?