Wenn, dann richtig:
SELECT Name, SUM(Spiel) AS SumSpiel , SUM(Tore) AS SumTore, AVG(SumTore/SumSpiel) AS AvgToreProSpiel
FROM Spiele
GROUP BY Name
ORDER BY AvgToreProSpiel DESC
Wenn, dann richtig:
SELECT Name, SUM(Spiel) AS SumSpiel , SUM(Tore) AS SumTore, AVG(SumTore/SumSpiel) AS AvgToreProSpiel
FROM Spiele
GROUP BY Name
ORDER BY AvgToreProSpiel DESC