You are just missing the GROUP BY. YOUR QUERY WITH GROUP BY. SELECT student.StudentID, student.`Name`, COUNT(attendance.AttendanceID) AS Total FROM student ...
確定! 回上一頁