MySQL max value for each condition -
i'd select max value of column specific type of data in table.
for simplified example, let's have game girl , boy players. want able retrieve highest scores gender = girl , gender = boy single query.
any way this? example 2 queries, data in app lot more complicated.
thanks :)
your example develop in simple way:
select gender, max(score) players group gender
i suppose have table players, store score , gender.
if have other more complex situation, yuo must write here , can analyze case.
Comments
Post a Comment