The Report

  • + 1 comment

    select students.name , grades.grade,students.marks from students join grades on students.marks>= grades.min_mark and students.marks<= grades.max_mark and grades.grade>7 order by grades.grade desc ,students.name asc;

    select null , grades.grade,students.marks from students join grades on students.marks>= grades.min_mark and students.marks<= grades.max_mark and grades.grade<8 order by grades.grade desc ,students.marks asc