MySQL query problem on group by and max

Posted by 1s2a3n4j5e6e7v on Stack Overflow See other posts from Stack Overflow or by 1s2a3n4j5e6e7v
Published on 2010-06-14T08:07:55Z Indexed on 2010/06/14 8:12 UTC
Read the original article Hit count: 335

Filed under:
|
|
|
|

My table structure is (id,cluster,qid,priority). I'm trying to figure out how I can display the maximum value of priority for each cluster. Say cluster 1 has priorities 100, 102, 105. I want to display the record containing 105. Please help.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about query