私のSQLクエリ
select *
from (
select *
from (
select b.course_code currentc
, b.pre_reqcoursecode prec
from (
select course_code
, pre_reqcoursecode
from adss_PreReqCourses
) a
join adss_PreReqCourses b
on a.course_code=b.course_code
where b.course_code='EE218'
) F
join adss_CoursesResult w
on F.prec=w.course_code
where w.GradePoint='B'
) J
join adss_CoursesResult I
on J.currentc=I.course_code
group by I.GradePoint
;
出力:
GradePoint Predicted
C+ 24628
C 22372
B- 18424
今、最高の予測カウントでグレードポイントを取得する方法??