nerdexam
Oracle

1Z0-082 · Question #4

Examine the description of the EMPLOYEES table: Which query is valid?

The correct answer is B. SELECT dept_id, join_date, SUM(salary) FROM employees GROUP BY dept_id. See the full explanation below for the reasoning.

SQL and PL/SQL

Question

Examine the description of the EMPLOYEES table:

Which query is valid?

Exhibit

1Z0-082 question #4 exhibit

Options

  • ASELECT dept_id, AVG(MAX(salary)) FROM employees GROUP BY dept_id;
  • BSELECT dept_id, join_date, SUM(salary) FROM employees GROUP BY dept_id;
  • CSELECT dept_id, join_date, SUM(salary) FROM employees GROUP BY dept_id, join_date;
  • DSELECT dept_id, MAX(AVG(salary)) FROM employees GROUP BY dept_id;

How the community answered

(53 responses)
  • A
    4% (2)
  • B
    72% (38)
  • C
    9% (5)
  • D
    15% (8)

Topics

#GROUP BY#aggregate functions#SUM#column selection rules

Community Discussion

No community discussion yet for this question.

Full 1Z0-082 Practice