Question 156

The SALES table has columns PROD_IDand QUANTITY_SOLDof data type NUMBER.
Which two queries execute successfully?
  • Question 157

    Examine the commands used to create DEPARTMENT_DETAILSand COURSE_DETAILS tables:

    You want to generate a list of all department IDs that do not exist in the COURSE_DETAILStable.
    You execute the SQL statement:

    What is the outcome?
  • Question 158

    Examine the structure of the PROMOTIONS table: (Choose the best answer.) Management requires a report of unique promotion costs in each promotion category.
    Which query would satisfy this requirement?
  • Question 159

    View the Exhibit and examine the structure of the ORDER_ITEMS and ORDERS tables.

    You are asked to retrieve the ORDER_ID, product_ID, and total price (UNIT_PRICE multiplied by QUANTITY), where the total price is greater than 50,000.
    You executed the following SQL statement:
    SELECT prder_id, product_id, unit_price*quantity "Total Price"
    FROM order_items
    WHERE unit_price*quantity > 50000
    NATURAL JOIN orders;
    Which statement is true regarding the execution of the statement?
  • Question 160

    In the EMPLOYEEStable there are 1000 rows and employees are working in the company for more than 10 years.
    Evaluate the following SQL statement:

    What would be the result?