You are viewing a single comment's thread. Return to all comments →
SELECT CASE WHEN g.min_mark >=70 THEN s.name ELSE NULL END AS name, grade, marks FROM students s JOIN grades g ON s.marks BETWEEN g.min_mark AND g.max_mark ORDER BY grade DESC, name, (CASE WHEN name IS NULL THEN grade END) DESC, marks;
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 →