Question 186

View the Exhibit and examine the details of the ORDER_ITEMS table.

Evaluate the following SQL statements:
Statement 1:
SELECT MAX(unit_price*quantity) "Maximum Order"
FROM order_items;
Statement 2:
SELECT MAX(unit_price*quantity) "Maximum Order"
FROM order_items
GROUP BY order_id;
Which statements are true regarding the output of these SQL statements? (Choose all that apply.)
  • Question 187

    Which statement is true regarding the default behavior of the ORDER BY clause?
  • Question 188

    Evaluate the following statement.
    INSERT ALL
    WHEN order_total < 10000 THEN
    INTO small_orders
    WHEN order_total > 10000 AND order_total < 20000 THEN
    INTO medium_orders
    WHEN order_total > 200000 AND order_total < 20000 THEN
    INTO large_orders
    SELECT order_id, order_total, customer_id
    FROM orders;
    Which statement is true regarding the evaluation of rows returned by the subquery in the INSERT statement?
  • Question 189

    Examine this partial command:
    CREATE TABLE cust(
    cust_id NUMBER(2),
    credit_limit NUMBER(10)
    ORGANIZATION EXTERNAL
    Which two clauses are required for this command to execute successfully?
  • Question 190

    Which two statements are true regarding the COUNT function? (Choose two.)