Question 91

View the exhibit and examine the structure in ORDERS and ORDER_ITEMS tables.
You need to create a view that displays the ORDER_ID, ORDER_DATE, and the total number of items in each order.
Which CREATE VIEW statement would create the views successfully?
  • Question 92

    Examine the following query:
    SQL> SELECT prod_id, amount_sold
    FROM sales
    ORDER BY amount_sold
    FETCH FIRST 5 PERCENT ROWS ONLY;
    What is the output of this query?
  • Question 93

    SCOTTis a user in the database.
    Evaluate the commands issued by the DBA:

    Which statement is true regarding the execution of the above commands?
  • Question 94

    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?
  • Question 95

    Which three are key components of an Entity Relationship Model? (Choose three.)