Consider the following relations:
emp(empno, ename, age, job, salary, dob, doj, deptno)
Find employees who earns highest salary for their job
(A) select ename, job, salary from emp
where sal in (select max(sal) from emp group by job);
(B) select ename, job, salary from emp
where Gob, sal) iln(select job, max(sal) from emp group by job);
(C) select ename, job, salary from emp
where Gob, sal) = (select job, max(sal) from emp group by job);
(D) Both B and C
Answers
Answered by
7
(A) select ename, job, salary from emp
where sal in (select max(sal) from emp group by job); ✅✅
Similar questions
CBSE BOARD X,
15 days ago
English,
15 days ago
Math,
1 month ago
English,
1 month ago
Social Sciences,
8 months ago