You are viewing a single comment's thread. Return to all comments →
MySQL: with user variable definition
set @threshold_grade = 8; select if(g.grade < @threshold_grade, "NULL", s.name) as fname ,g.grade ,s.marks from students s join grades g ON (s.marks BETWEEN g.min_mark AND g.max_mark) order by g.grade desc, fname, s.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 →
MySQL: with user variable definition