P

Praveen Singh • 36.81K Points
Coach

Q. View the Exhibit and examine the data in the EMPLOYEES tables. Evaluate the following SQL statement: SELECT employee_id, department_id FROM employees WHERE department_id= 50 ORDER BY department_id UNION SELECT employee_id, department_id FROM employees WHERE department_id= 90 UNION SELECT employee_id, department_id FROM employees WHERE department_id= 10; What would be the outcome of the above SQL statement?

(A) The statement would execute successfully and display all the rows in the ascending order ofDEPARTMENT_ID.
(B) The statement would execute successfully but it will ignore the ORDER BY clause and display the rows in random order.
(C) The statement would not execute because the positional notation instead of the column name should be used with the ORDER BY clause.
(D) CREATE TABLE ord_details (ord_no NUMBER(2), item_no NUMBER(3), ord_date date DEFAULT SYSDATE NOT NULL, CONSTRAINT ord_pk PRIMARY KEY (ord_no, item_no));
Share

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics