Question 16

Examine the data in the CUST_NAMEcolumn of the CUSTOMERStable:

You want to display the CUST_NAMEvalues where the last name starts with Mcor MC.
Which two WHERE clauses give the required result? (Choose two.)
  • Question 17

    Examine the create table statements for the stores and sales tables.
    SQL> CREATE TABLE stores(store_id NUMBER(4) CONSTRAINT store_id_pk PRIMARY KEY, store_name VARCHAR2(12), store_address VARCHAR2(20), start_date DATE); SQL> CREATE TABLE sales(sales_id NUMBER(4) CONSTRAINT sales_id_pk PRIMARY KEY, item_id NUMBER(4), quantity NUMBER(10), sales_date DATE, store_id NUMBER(4), CONSTRAINT store_id_fk FOREIGN KEY(store_id) REFERENCES stores(store_id)); You executed the following statement:
    SQL> DELETE from stores
    WHERE store_id=900;
    The statement fails due to the integrity constraint error:
    ORA-02292: integrity constraint (HR.STORE_ID_FK) violated
    Which three options ensure that the statement will execute successfully?
  • Question 18

    Which three statements are true about the DESCRIBE command?
  • Question 19

    Examine the description or the BOOKS_TRANSACTIONS table:

    FOR customers whose income level has a value, you want to display the first name and due amount as 5% of their credit limit. Customers whose due amount is null should not be displayed.
    Which query should be used?
  • Question 20

    Examine the description of the PRODUCTS table:

    Which two statements execute without errors?