The Report

  • + 1 comment

    -- MS SQL Server

    select name = case when grade < 8 then null else name end, grade, marks from students, grades where students.marks >= grades.min_mark and students.marks <= grades.max_mark order by grade desc, name, marks