考虑我有两个表/列:
Employee - > EmpId, DeptNo, EmpName, Salary
Department -> DeptNo, DeptName
编写查询以获取所有部门中薪水最高的员工姓名。我试过这个:
Select max(salary),empname
from Employee
where deptno = (select deptno
from department
where deptname in('isd','it','sales')
这是对的吗?其实是面试题。