Select name
from score, student
where student.student_id = score.student_id
and event_id = 1
and score.score = (select MAX(score) from score where event_id = 1)
我从event_id = 1)得分中测试选择MAX(得分),但是当我尝试使用它这样找到名字时,它不能正常工作,它不会调用错误只是说0结果。 我想问一下如何以这种方式或类似的方式获得价值?
答案 0 :(得分:0)
SELECT student FROM table ORDER BY MAX( score ) DESC