MySQL find top results for each group
问题 I have searched a lot, but I can't find an answer or something near. I have a table like this: id int(11) NO PRI auto_increment attribute_id int(11) YES user_id int(11) YES result int(11) YES x10 int(11) YES I need about 5 results from each attribute_id . attribute_id can be any number, so at first, I need to check for the attribute_id , and next I have to check for the results for each attribute_id. I can't find out how I do this without any programming language other than MySQL, but I know