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 (job, sal) in(select job, max(sal) from emp group by job);
(C) select ename, job, salary from emp
where (job, sal) = (select job, max(sal) from emp group by job);
(D) Both B and C
Answers
Answered by
14
Answer:
Both b and c
Hope it is helpful to you
Similar questions
English,
20 days ago
Math,
20 days ago
Computer Science,
1 month ago
Social Sciences,
1 month ago
Math,
8 months ago
Math,
8 months ago
English,
8 months ago