Hi guys i have a home work from school that i should show student with the highest score & the registrant id is even, sorry i can't show the structre of table because i don't know how to put them but i have 3 table
- student
- user
- score
i have coding like this
SELECT student.id_student, name, role, status, no_phone, exam_status, score FROM student
JOIN user ON user.username = student.id_student
JOIN score ON score.id_student = student.id_student
WHERE mod(student.id_student, 2) = 0
ORDER BY score DESC
the result for registrant id is work, they show the registrant id even, but the scores show from the highest to the lowest, it should be show the highest only.
i want to use MAX but i dont know where can i put them. can you guys help me fix this, thank you.