MySQL query to get either the first or last distinctive entry with all remaining fields per line
Example Table: id groupId data 1 2 apple 2 5 cinnemon 3 5 bacon 4 5 pickles 5 5 wonka 6 42 bar 7 42 linux 8 69 rocks 9 69 joe 10 69 bob 11 101 briggs 12 101…