1z1-071 Exam Question 321

You must create a SALES table with these column specifications and data types: (Choose the best answer.) SALESID: Number STOREID: Number ITEMID: Number QTY: Number, should be set to 1 when no value is specified SLSDATE: Date, should be set to current date when no value is specified PAYMENT: Characters up to 30 characters, should be set to CASH when no value is specified Which statement would create the table?
  • 1z1-071 Exam Question 322

    View the Exhibit and examine the details of the PRODUCT_INFORMATION table. (Choose two.)

    Evaluate this SQL statement:
    SELECT TO_CHAR(list_price,'$9,999')
    From product_information;
    Which two statements are true regarding the output? (Choose two.)
  • 1z1-071 Exam Question 323

    View the exhibit and examine the data in ORDERS_MASTERand MONTHLY_ORDERStables.
    ORDERS_MASTER
    ORDER_TOTAL
    ORDER_ID
    1 1000
    2 2000
    3 3000
    4
    MONTHLY_ORDERS
    ORDER_TOTAL
    ORDER_ID
    2 2500
    3
    Evaluate the following MERGEstatement:
    MERGE_INTO orders_master o
    USING monthly_orders m
    ON (o.order_id = m.order_id)
    WHEN MATCHED THEN
    UPDATE SET o.order_total = m.order_total
    DELETE WHERE (m.order_total IS NULL)
    WHEN NOT MATCHED THEN
    INSERT VALUES (m.order_id, m.order_total)
    What would be the outcome of the above statement?