MySQL query problem on group by and max -
My table structure is (id, cluster, qid, priority). I am trying to explain how I can display the maximum value for each cluster. Say cluster 1's priorities are 100, 102, 105. I want to display records containing 105. help please.
This is an article that describes how to select the row with the maximum value for each group .
Comments
Post a Comment