The Report

  • + 0 comments

    select case when (select grade from grades where s.marks between min_mark and max_mark)>= 8 Then s.name else NULL end, (select grade from grades where s.marks between min_mark and max_mark) as grade_of_student, s.marks from students s order by grade_of_student desc, name asc, marks asc;