select - MySQL Query to list stat for total hits based on individual players & hits? -


OK, I have the following data:

  ID name target 1 user 1 user2 2  

I want to get the 'most hits' and 'most hits' status for a particular player.

For example, in the above case, User 3 has been hit the user 1 (2 times total). Then user will be the 'most hit' state for 1:

  player total_hits user3 2  

and 'most hits' will be state for user 3:

  player total_hits user1 2  

From this query I think there is something from this line:

  SELECT ` '`` `` `` `` `` `` `` `` `` `` `` `` `` ` `` `` `` But the whole query is out of me; Any ideas?   

greater hits

  hits from SELECT `target` Group selection by 'Launch` Order Gate (*), by the group, with the name "Hits" named by the name  

highest hits

  Question range (*) by desc range 1  

The question is almost identical; it is only different from the column in your group


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -