nerdexam
Oracle

1Z0-007 · Question #80

1Z0-007 Question #80: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-007 to reveal the answer and full explanation for question #80. 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
  • BSELECT a.emp_name, a.sal, a.dept_id, b.maxsal FROM employees a, (SELECT
  • CSELECT a.emp_name, a.sal, a.dept_id, b.maxsal FROM employees a WHERE a.sal <
  • DSELECT emp_name, sal, dept_id, maxsal FROM employees, (SELECT dept_id,

Unlock 1Z0-007 to see the answer

You've previewed enough free 1Z0-007 questions. Unlock 1Z0-007 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-007 Practice