これは私のテーブルデータですStudent
そしてこれは私の質問です-
SELECT id, SUM( maths + chemistry + physics ) AS total, maths, chemistry, physics
FROM `student`
しかし、それは単一の行を投げています-
id total maths chemistry physics
118 760 55 67 55
すべてのIDに合計を適用したいのですが....どうすればこれを達成できますか?