Mysql
 sql >> Datenbank >  >> RDS >> Mysql

MySQL Sum() mehrere Spalten

SELECT student, (SUM(mark1)+SUM(mark2)+SUM(mark3)....+SUM(markn)) AS Total
 FROM your_table
 GROUP BY student