Calculate average of column from MYSQL query

后端 未结 1 1698
甜味超标
甜味超标 2021-02-11 13:00

I\'ve got a table that I am trying to calculate the average of the values in a column. Here is my lookup:

SELECT SUM(P1_Score) AS value_sum FROM tblMatches Wher         


        
相关标签:
1条回答
  • 2021-02-11 13:48

    You can use AVG like so:

    SELECT AVG(P1_Score)
    
    0 讨论(0)
提交回复
热议问题