I do have a table with one "type"-column, this column is a enum with eight possibilities. I now want to query the last row of each enum value - so if I'm looking for four of the eight possible values, I want four rows with each one of the enums.
Any ideas?
Edit examples: following enum: type=("example1","ex2","ex3") Each row has a type and a timestamp I'd like to have the last timestamp of every type.
Sample Data: example 1 - 7:13, ex2 - 8:14, example 1 - 9:17, ex3 - 6:13
Wished Result: example 1 - 9:17, ex2 - 8:14
Dialect is MySQL. Thanks!