nerdexam
Oracle

1Z0-061 · Question #251

1Z0-061 Question #251: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-061 to reveal the answer and full explanation for question #251. The question stem and answer options stay visible for context.

Question

You need to write a SQL statement that returns employee name, salary, department ID, and maximum salary earned in the department of the employee for all employees who earn less than the maximum salary in their department. Which statement accomplishes this task?

Options

  • ASELECT a.emp_name, a.sal, b.dept_id, MAX(sal) FROM employees a, departments b WHERE
  • Bdept_id = b.dept_id AND a.sal < MAX(sal) GROUP BY b.dept_id;
  • CSELECT a.emp_name, a.sal, a.dept_id, b.maxsal FROM employees a, (SELECT dept_id,
  • DSELECT a.emp_name, a.sal, a.dept_id, b.maxsal FROM employees a WHERE a.sal < (SELECT
  • ESELECT emp_name, sal, dept_id, maxsal FROM employees, (SELECT dept_id, MAX(sal) maxsal

Unlock 1Z0-061 to see the answer

You've previewed enough free 1Z0-061 questions. Unlock 1Z0-061 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-061 Practice
You need to write a SQL statement that returns employee name,... | 1Z0-061 Q#251 Answer | NerdExam