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

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -