1z0-071 Exam Question 6

View the Exhibit and examine the description of the EMPLOYEES table.

Evaluate the following SQL statement:
SELECT first_name, employee_id, NEXT_DAY(ADD_MONTHS(hire_date, 6), 1) "Review" FROM employees; The query was written to retrieve the FIRST_NAME, EMPLOYEE_ID, and review date for employees. The review date is the firsts Monday after the completion of six months of the hiring. The NLS_TERRITORY parameter is set to AMERICA in the session.
Which statement is true regarding this query?
  • 1z0-071 Exam Question 7

    Which three statements are true about multiple row subqueries?
  • 1z0-071 Exam Question 8

    View the Exhibit and examine the structure of the PRODUCT_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?
  • 1z0-071 Exam Question 9

    View the Exhibit and examine the data in the PRODUCTS table. (Choose the best answer.) You must display product names from the PRODUCTS table that belong to the
    'Software/other' category with minimum prices as either $2000 or $4000 and with no unit of measure.
    You issue this query:
    SQL > SELECT prod_name, prod_category, prod_min_price FROM products
    Where prod_category LIKE '%Other%' AND (prod_min_price = 2000 OR prod_min_price
    4000) AND prod_unit_of_measure <> ' ';
    Which statement is true?
  • 1z0-071 Exam Question 10

    Evaluate the following SQL statements that are issued in the given order:
    CREATE TABLE emp
    (emp_no NUMBER(2) CONSTRAINT emp_emp_no_pk PRIMARY KEY,
    ename VARCHAR2(15),
    salary NUMBER (8,2),
    mgr_no NUMBER(2) CONSTRAINT emp_mgr_fk REFERENCES emp(emp_no));
    ALTER TABLE emp
    DISABLE CONSTRAINT emp_emp_no_pk CASCADE;
    ALTER TABLE emp
    ENABLE CONSTRAINT emp_emp_no_pk;
    What would be the status of the foreign key EMP_MGR_PK?