Hi all,
Im trying to execute this statement in SQL Plus but am getting the
error not a single-group group function. My code is below. To explain
what Im trying to get at, I want to return the total grade for g.grade
that has been multiplied by its appropriate weight that it carries
towards the total grade.
SELECT g.section_id, g.student_id, g.grade_type_co de,
SUM((AVG(g.grad e)*30/100+AVG(g.grade )
*20/100+AVG(g.grade )*20/100+AVG(g.grade )*10/100+AVG(g.grade )*20/100))
FROM grade g, grade_type_weig ht gtw
WHERE g.student_id = 270
AND g.section_id = gtw.section_id
AND g.grade_type_co de = gtw.grade_type_ code
GROUP BY g.section_id, g.student_id,
g.grade_type_co de
Any help is greatly appreciated:>
Moon
Im trying to execute this statement in SQL Plus but am getting the
error not a single-group group function. My code is below. To explain
what Im trying to get at, I want to return the total grade for g.grade
that has been multiplied by its appropriate weight that it carries
towards the total grade.
SELECT g.section_id, g.student_id, g.grade_type_co de,
SUM((AVG(g.grad e)*30/100+AVG(g.grade )
*20/100+AVG(g.grade )*20/100+AVG(g.grade )*10/100+AVG(g.grade )*20/100))
FROM grade g, grade_type_weig ht gtw
WHERE g.student_id = 270
AND g.section_id = gtw.section_id
AND g.grade_type_co de = gtw.grade_type_ code
GROUP BY g.section_id, g.student_id,
g.grade_type_co de
Any help is greatly appreciated:>
Moon
Comment