The Report

  • + 0 comments

    select if (g.grade >= 8, s.name, NULL) as names, g.grade, s.marks from students s inner join grades as g on s.marks <= g.max_mark and s.marks >= g.min_mark order by g.grade desc, name asc, marks asc;