1z0-071 Exam Question 41

View the Exhibit and examine the structure 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?
  • 1z0-071 Exam Question 42

    Which three statements are true about sequences in a single instance Oracle database? (Choose three.)
  • 1z0-071 Exam Question 43

    Examine the data in the CUST_NAME column of the CUSTOMERS table:

    You want to display the CUST_NAME values where the last name starts with Mc or MC.
    Which two WHERE clauses give the required result?
  • 1z0-071 Exam Question 44

    View the exhibit and examine the ORDERS table.

    The ORDERS table contains data and all orders have been assigned a customer ID. Which statement would add a NOT NULL constraint to the CUSTOMER_ID column?
  • 1z0-071 Exam Question 45

    Evaluate the following SQL statement:
    SELECT product_name || 'it's not available for order'
    FROM product_information
    WHERE product_status = 'obsolete';
    You received the following error while executing the above query:
    ERROR
    ORA-01756: quoted string not properly terminated
    What would you do to execute the query successfully?