Try to see which player scored the most goals.
Player_id
Goals.
I tried the following statement:
select player_id, sum(goals) as total
from matchstat
group by player_id
order by total desc limit 1;
But i get the error:
SQL command not properly ended.
Does anyone see the problem with the query?