How to display the names of clerks who earn a salary more than the lowest salary of any salesman?

Oracle Apps Interview QuestionsCategory: SQLHow to display the names of clerks who earn a salary more than the lowest salary of any salesman?
Questions Master asked 9 years ago

How to display the names of clerks who earn a salary more than the lowest  salary of any salesman?

1 Answers
Shailender Thallam Staff answered 9 years ago

SELECT ename
FROM emp
WHERE job=’CLERK’
AND sal  >
  (SELECT MIN(sal) FROM emp WHERE job=’SALESMAN’
  );