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