我这样写查询语句为什么错?
INSERT INTO course1 ( studentno, coursechenji, activechenji, studychenji )
SELECT studentno, sum(coursechenji), sum(activechenji), sum(studychenji)
FROM course_chenji, active_chenji, study_chenji
WHERE course_chenji.studentno=active_chenji.studentno and active_chenji.studentno=studychenji.studentno
GROUP BY studentno;