Question 156

View the exhibit and examine the description of the PRODUCT_INFORMATION table.

Which SQL statement would retrieve from the table the number of products having LIST_PRICE as NULL?
  • Question 157

    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 158

    Sales data of a company is stored in two tables, SALES1and SALES2, with some data being duplicated across the tables. You want to display the results from the SALES1table, which are not present in the SALES2table.
    SALES1 table
    Name Null Type
    ------------------ ------------- ----------------
    SALES_ID NUMBER
    STORE_ID NUMBER
    ITEMS_ID NUMBER
    QUANTITY NUMBER
    SALES_DATE DATE
    SALES2 table
    Name Null Type
    ---------------- ------------- -----------------
    SALES_ID NUMBER
    STORE_ID NUMBER
    ITEMS_ID NUMBER
    QUANTITY NUMBER
    SALES_DATE DATE
    Which set operator generates the required output?
  • Question 159

    Examine the business rule:
    Each student can work on multiple projects and each project can have multiple students.
    You need to design an Entity Relationship Model (ERD) for optimal data storage and allow for generating reports in this format:
    STUDENT_ID FIRST_NAME LAST_NAME PROJECT_ID PROJECT_NAME
    PROJECT_TASK
    Which two statements are true in this scenario?
  • Question 160

    Which two are true about scalar subquery expressions? (Choose two.)