Question 46

Examine the structure of the BOOKS_TRANSACTIONStable.

You want to update this table such that BOOK_IDis 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 WHEREclause to perform the required update?
  • Question 47

    View the Exhibit and examine the structure of the PRODUCT_INFORMATIONand INVENTORIEStables.

    You have a requirement from the supplies department to give a list containing PRODUCT_ID, SUPPLIER_ID, and QUANTITY_ON_HANDfor all the products wherein QUANTITY_ON_HANDis less than five.
    Which two SQL statements can accomplish the task? (Choose two.)
    SELECT i.product_id, i.quantity_on_hand, pi.supplier_id
  • Question 48

    Examine this query:

    Which two methods should you use to prevent prompting for a hire date value when this query is executed?
  • Question 49

    Which is the default column or columns for sorting output from compound queries using SET operators such as INTERSECT in a SQL statement?
  • Question 50

    The customers table has the following structure:

    You need to write a query that does the following tasks:
    1. Display the first name and tax amount of the customers. Tax is 5% of their credit limit.
    2. Only those customers whose income level has a value should be considered.
    3. Customers whose tax amount is null should not be considered.
    Which statement accomplishes all the required tasks?