nerdexam
Oracle

1Z0-071 · Question #155

View the Exhibit and examine the structure in the DEPARTMENTS tables. (Choose two.) Examine this SQL statement: SELECT department_id "DEPT_ID", department_name, 'b' FROM departments WHERE…

The correct answer is B. ORDER BY DEPT_ID; D. ORDER BY 3. See the full explanation below for the reasoning.

Question

View the Exhibit and examine the structure in the DEPARTMENTS tables. (Choose two.) Examine this SQL statement:

SELECT department_id "DEPT_ID", department_name, 'b' FROM departments WHERE departments_id=90 UNION SELECT department_id, department_name DEPT_NAME, 'a' FROM departments WHERE department_id=10 Which two ORDER BY clauses can be used to sort the output?

Options

  • AORDER BY DEPT_NAME;
  • BORDER BY DEPT_ID;
  • CORDER BY 'b';
  • DORDER BY 3;

How the community answered

(22 responses)
  • A
    9% (2)
  • B
    73% (16)
  • C
    18% (4)

Community Discussion

No community discussion yet for this question.

Full 1Z0-071 Practice