Oracle
1Z0-047 · Question #244
View the Exhibit and examine the data in the DEPARTMENTS tables. Evaluate the following SQL statement: SELECT department_id "DEPT_ID", department_name , 'b' FROM departments WHERE department__id=90…
The correct answer is A. ORDER BY 3; C. ORDER BYDEPT_ID. See the full explanation below for the reasoning.
Question
View the Exhibit and examine the data in the DEPARTMENTS tables. Evaluate the following SQL statement:
SELECT department_id "DEPT_ID", department_name , 'b' FROM departments WHERE department__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 of the above statement? (Choose two.)
Exhibit
Options
- AORDER BY 3;
- BORDER BY'b';
- CORDER BYDEPT_ID;
- DORDER BY DEPTNAME;
How the community answered
(32 responses)- A84% (27)
- B9% (3)
- D6% (2)
Community Discussion
No community discussion yet for this question.
