I have the following sql query, that returns the grade 3 students made on a test.
Student 1 made a 0 on the exam, so my query result is only return the grades of two students how can i include the zero in the result?
select u.uno, u.fname, u.lname, count(q.qno) as Test1 from ((users u
LEFT OUTER JOIN userresponse ur on ur.uno = u.uno) left outer join
question q on q.correctanswer = ur.response and q.qno = ur.qno and
q.eno = ur.eno) where q.eno = '1' group by u.uno, u.fname, u.lname
ur.eno is exam 1, then question numbers and exam number are joined and q.corectanswer = ur.response checks what questions the user got right ur.uno = u.uno just joins the tables.