You are viewing a single comment's thread. Return to all comments →
SQL Code using CTE:
with report as ( select name, grade, marks from students join grades on students.marks between grades.min_mark and grades.max_mark ) select case when grade>=8 then name else null end, grade, marks from report order by grade desc, name;
Seems like cookies are disabled on this browser, please enable them to open this website
The Report
You are viewing a single comment's thread. Return to all comments →
SQL Code using CTE: