no class in this field, how to calculate the average score of classes, the class can only student number, student id known rules for a year in + number + 2 two college class number within + 2 class number
CodePudding user response:
SELECT the LEFT (student id, 6), AVG (English) FROM league tables GROUP BY LEFT (student id, 6)