King^Lully: SQL - Summe sortieren?

Beitrag lesen

SELECT verein_name,SUM(win),SUM(remis),SUM(lost),SUM(tore1),SUM(tore2),(tore1-tore2) as diff,SUM(punkte) FROM hattrix_tabelle1 INNER JOIN hattrix_vereine ON team_id=hattrix_vereine.id_v WHERE hattrix_tabelle1.spieltag <= 2 GROUP BY verein_name ORDER BY punkte DESC, diff DESC, tore1 DESC, verein_name ASC

  
Probier mal, "ORDER BY Sum(punkte) DESC".