Question 171

Examine the structure of the EMPLOYEEStable.

There is a parent/child relationship between EMPLOYEE_IDand MANAGER_ID.
You want to display the last names and manager IDs of employees who work for the same manager as the employee whose EMPLOYEE_IDis 123.
Which query provides the correct output?
  • Question 172

    Examine the data in the CUSTOMERStable:

    You want to list all cities that have more than one customer along with the customer details.
    Evaluate the following query:

    Which two JOIN options can be used in the blank in the above query to give the correct output? (Choose two.) LEFT OUTER JOIN
  • Question 173

    The ORDERS table has a primary key constraint on the ORDER_ID column.
    The ORDER_ITEMS table has a foreign key constraint on the ORDER_ID column, referencing the primary key of the ORDERS table.
    The constraint is defined with on DELETE CASCADE.
    There are rows in the ORDERS table with an ORDER_TOTAL less than 1000.
    Which three DELETE statements execute successfully?
  • Question 174

    View the Exhibit and examine the structure of the ORDERS table. (Choose the best answer.)

    You must select ORDER_ID and ORDER_DATE for all orders that were placed after the last order placed by CUSTOMER_ID 101.
    Which query would give you the desired result?
  • Question 175

    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 > 2000000 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?