You are viewing a single comment's thread. Return to all comments →
What is wrong with my solution?
SELECT CASE WHEN g.grade >= 8 THEN s.name ELSE NULL END AS Name, g.grade AS Grade, s.marks AS Mark FROM students s, grades g WHERE g.grade BETWEEN 1 AND 10 ORDER BY g.grade DESC, CASE WHEN g.grade >= 8 THEN s.name ELSE NULL END ASC, CASE WHEN g.grade < 8 THEN s.marks ELSE NULL END ASC;
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 →
What is wrong with my solution?