编写查询以按部门名称升序显示软件工程中表现最佳的人员的姓名,部门名称和标记。 schema for the query
我已经尝试了这段代码,我认为此查询b'coz出了点问题,既没有出错,也没有结果或o / p。
select s.student_name,m.value, d.department_name
from student s,mark m,subject su, department d
where s.student_id=m.student_id
and su.subject_id = m.subject_id
and m.value in(select max(value) from mark
where lower(su.subject_name)='Software engineering')
order by s.student_name;