Question 136

Which two statements are true regarding the execution of the correlated subqueries? (Choose two.)
  • Question 137

    Evaluate the following SELECTstatement and view the exhibit to examine its output:
    SELECT constraint_name, constraint_type, search_condition, r_constraint_name, delete_rule, status, FROM user_constraints
    WHERE table_name = 'ORDERS';

    Which two statements are true about the output? (Choose two.)
  • Question 138

    You need to calculate the number of days from 1st January 2019 until today.
    Dates are stored in the default format of DD-MON-RR.
    Which two queries give the required output? (Choose two.)
    SELECT TO_CHAR(SYSDATE, 'DD-MON-YYYY') - '01-JAN-2019' FROM DUAL;
  • Question 139

    View the exhibit and examine the data in ORDERS_MASTER and MONTHLY_ORDERS tables.

    Evaluate the following MERGE statement:
    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?
  • Question 140

    View the Exhibit and examine the structure of the EMPLOYEES table.
    You want to display all employees and their managers having 100 as the MANAGER_ID. You want the output in two columns: the first column would have the LAST_NAME of the managers and the second column would have LAST_NAME of the employees.

    Which SQL statement would you execute?