Question 161

View the Exhibit and examine the structure in the DEPARTMENTS tables. (Choose two.)

Examine this SQL statement:
SELECT department_id "DEPT_ID", department_name, 'b' FROM
departments
WHERE departments_id=90
UNION
SELECT department_id, department_name DEPT_NAME, 'a' FROM
departments
WHERE department_id=10
Which two ORDER BY clauses can be used to sort the output?
  • Question 162

    Examine the structure of the BOOKS_TRANSACTIONS table.

    You want to update this table such that BOOK_ID is set to 'INVALID' for all rows where no MEMBER_ID has been entered.
    Examine this partial SQL statement:

    Which condition must be used in the WHERE clause to perform the required update?
  • Question 163

    Examine the command:

    What does ON DELETE CASCADE imply?
  • Question 164

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

    PRODUCT_ID column is the primary key.
    You create an index using this command:
    SQL > CREATE INDEX upper_name_idx
    ON product_information(UPPER(product_name));
    No other indexes exist on the PRODUCT_INFORMATION table.
    Which query would use the UPPER_NAME_IDX index?
  • Question 165

    Examine the structure proposed for the TRANSACTIONStable:

    Which two statements are true regarding the storage of data in the above table structure? (Choose two.)